Fix erroneous check in refreshLinks.php
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Sun, 13 Jan 2013 21:13:55 +0000 (22:13 +0100)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Sun, 13 Jan 2013 21:13:55 +0000 (22:13 +0100)
Obviously null === false will never return true,
and what we actually want here is to check whether
we have a content or not.

Change-Id: Id78897e80ba2553c925e10d67c0fce2186aa11fd

maintenance/refreshLinks.php

index 7a551d6..fe03f51 100644 (file)
@@ -215,7 +215,7 @@ class RefreshLinks extends Maintenance {
                }
 
                $content = $page->getContent( Revision::RAW );
-               if ( null === false ) {
+               if ( $content === null ) {
                        return;
                }