X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FdumpLinks.php;h=888c2dc1d9354e64a591db4a584b44cff4fa1886;hb=937ae6444a683a3b0aaf14c21f529ad0e91419ef;hp=dfd1959cfc47ead922c0d7115321a6b8425b22ce;hpb=feeac7bdfc9c629e40e5de0b1825daa2bd634a55;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/dumpLinks.php b/maintenance/dumpLinks.php index dfd1959cfc..888c2dc1d9 100644 --- a/maintenance/dumpLinks.php +++ b/maintenance/dumpLinks.php @@ -59,7 +59,7 @@ class DumpLinks extends Maintenance { $lastPage = null; foreach ( $result as $row ) { if ( $lastPage != $row->page_id ) { - if ( isset( $lastPage ) ) { + if ( $lastPage !== null ) { $this->output( "\n" ); } $page = Title::makeTitle( $row->page_namespace, $row->page_title ); @@ -69,7 +69,7 @@ class DumpLinks extends Maintenance { $link = Title::makeTitle( $row->pl_namespace, $row->pl_title ); $this->output( " " . $link->getPrefixedURL() ); } - if ( isset( $lastPage ) ) { + if ( $lastPage !== null ) { $this->output( "\n" ); } }