Ensure key exists before checking array value
This commit is contained in:
parent
b29686029a
commit
f8b4adef23
@ -133,7 +133,7 @@ trait PhpFilesTrait
|
|||||||
*/
|
*/
|
||||||
protected function doHave($id)
|
protected function doHave($id)
|
||||||
{
|
{
|
||||||
if ($this->appendOnly && $this->values[$id]) {
|
if ($this->appendOnly && isset($this->values[$id])) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user