Project

General

Profile

Bug #62553 » objectstorage-offsetexists-check-object.patch

Fix isset() call on ObjectStorage with numeric index - Mathias Brodala, 2014-10-30 11:26

View differences:

typo3/sysext/extbase/Classes/Persistence/ObjectStorage.php
* @return bool
*/
public function offsetExists($object) {
return isset($this->storage[spl_object_hash($object)]);
return is_object($object) && isset($this->storage[spl_object_hash($object)]);
}
/**
(1-1/2)