Ensure key exists before checking array value

This commit is contained in:
Jonathan Johnson 2019-03-20 14:51:06 -07:00
parent b29686029a
commit f8b4adef23
No known key found for this signature in database
GPG Key ID: 673E14A72062F1D0

View File

@ -133,7 +133,7 @@ trait PhpFilesTrait
*/
protected function doHave($id)
{
if ($this->appendOnly && $this->values[$id]) {
if ($this->appendOnly && isset($this->values[$id])) {
return true;
}