fix: warning: undefined index for $cache['labels']

This commit is contained in:
James 2019-08-29 07:45:08 +01:00
parent 7aad548198
commit a0865766b3

View File

@ -33,7 +33,7 @@ class Repo{
}
public function getLabelByName($name){
if(!$this->cache['lables']){
if(!isset($this->cache['lables'])){
$url="repos/{$this->user}/{$this->repo}/labels";
$this->cache['lables']=$this->client->request($url);
}