Fix r19896 for bug 8944 (pressing 'u' in vim before committing is a bad idea).
authorAntoine Musso <hashar@users.mediawiki.org>
Mon, 12 Feb 2007 20:22:34 +0000 (20:22 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Mon, 12 Feb 2007 20:22:34 +0000 (20:22 +0000)
includes/StubObject.php

index 18c7726..4035f1b 100644 (file)
@@ -24,7 +24,7 @@ class StubObject {
        }
 
        static function isRealObject( $obj ) {
-               return is_object( $obj ) && !(instanceof 'StubObject');
+               return is_object( $obj ) && !($obj instanceof StubObject);
        }
 
        function _call( $name, $args ) {