[+BUGFIX] Extbase: fixed php warning in Tx_Extbase_Persistence_LazyLoadingProxy when...
authorMarc Bastian Heinrichs <heinrichs@mbh-web.de>
Wed, 10 Nov 2010 22:43:47 +0000 (22:43 +0000)
committerMarc Bastian Heinrichs <heinrichs@mbh-web.de>
Wed, 10 Nov 2010 22:43:47 +0000 (22:43 +0000)
typo3/sysext/extbase/Classes/Persistence/LazyLoadingProxy.php

index f81ca64..9d487e5 100644 (file)
@@ -114,6 +114,9 @@ class Tx_Extbase_Persistence_LazyLoadingProxy implements Iterator, Tx_Extbase_Pe
         */
        public function __call($methodName, $arguments) {
                $realInstance = $this->_loadRealInstance();
+               if (!is_object($realInstance)) {
+                       return NULL;
+               }
                return call_user_func_array(array($realInstance, $methodName), $arguments);
        }