fix: warning: undefined index for $cache['labels']
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user