A simple 'if($object)' was coming up false; use 'if(isset($object))'.
* (bug 3684) Fix typo in fatal error backtraces in Hooks.php
* (bug 3682) LanguageSr.php - added convertPlural
* (bug 2369) Add separate message for input box on Special:Prefixindex
+* Fix for hook callbacks on objects containing no fields
=== Caveats ===
}
- if ( $object ) {
+ if ( isset( $object ) ) {
$func = get_class( $object ) . '::' . $method;
}
/* Call the hook. */
wfProfileIn( $func );
- if ($object) {
+ if( isset( $object ) ) {
$retval = call_user_func_array(array($object, $method), $hook_args);
} else {
$retval = call_user_func_array($func, $hook_args);