From: Alexandre Emsenhuber Date: Sun, 13 Jan 2013 21:13:55 +0000 (+0100) Subject: Fix erroneous check in refreshLinks.php X-Git-Tag: 1.31.0-rc.0~21047^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22auteur_infos%22%2C%20%22id_auteur=%24id%22%29%20.%20%22?a=commitdiff_plain;h=2b6b4f9a0eee506276af95f67d4815ec364e765a;p=lhc%2Fweb%2Fwiklou.git Fix erroneous check in refreshLinks.php 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 --- diff --git a/maintenance/refreshLinks.php b/maintenance/refreshLinks.php index 7a551d6510..fe03f51e5d 100644 --- a/maintenance/refreshLinks.php +++ b/maintenance/refreshLinks.php @@ -215,7 +215,7 @@ class RefreshLinks extends Maintenance { } $content = $page->getContent( Revision::RAW ); - if ( null === false ) { + if ( $content === null ) { return; }