initialize variable, right, thanks Brion! :)
authorDomas Mituzas <midom@users.mediawiki.org>
Wed, 5 Apr 2006 09:20:41 +0000 (09:20 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Wed, 5 Apr 2006 09:20:41 +0000 (09:20 +0000)
includes/Title.php

index ba1539e..b32d8cc 100644 (file)
@@ -1076,6 +1076,7 @@ class Title {
        function userCanRead() {
                global $wgUser;
 
+               $result = null;
                wfRunHooks( 'userCan', array( &$this, &$wgUser, 'read', &$result ) );
                if ( $result !== null ) {
                        return $result;