]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/arraywrapper.php
better output for registration confirmation
[quix0rs-gnu-social.git] / lib / arraywrapper.php
index 8a1cdd96e1f03363a766361b0582f3bfc7acf6ce..f9d3c3cf946313d14b35b2ee4cfca2fd1e59a706 100644 (file)
@@ -76,6 +76,10 @@ class ArrayWrapper
     function __call($name, $args)
     {
         $item =& $this->_items[$this->_i];
+        if (!is_object($item)) {
+            common_log(LOG_ERR, "Invalid entry " . var_export($item, true) . " at index $this->_i of $this->N; calling $name()");
+            throw new ServerException("Internal error: bad entry in array wrapper list.");
+        }
         return call_user_func_array(array($item, $name), $args);
     }
 }