fix: warning: undefined index for $cache['labels']
This commit is contained in:
parent
7aad548198
commit
a0865766b3
@ -33,7 +33,7 @@ class Repo{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function getLabelByName($name){
|
public function getLabelByName($name){
|
||||||
if(!$this->cache['lables']){
|
if(!isset($this->cache['lables'])){
|
||||||
$url="repos/{$this->user}/{$this->repo}/labels";
|
$url="repos/{$this->user}/{$this->repo}/labels";
|
||||||
$this->cache['lables']=$this->client->request($url);
|
$this->cache['lables']=$this->client->request($url);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user