jenkins-bot has submitted this change and it was merged.

Change subject: (bug 56669) fix failure when $links = array() and $params = null
......................................................................


(bug 56669) fix failure when $links = array() and $params = null

Change-Id: I5975d193f192ca0746c30ce998a29206412b403b
---
M ProofreadPage.body.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Tpt: Looks good to me, approved
  Rtdwivedi: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/ProofreadPage.body.php b/ProofreadPage.body.php
index 9d985c6..ce48fc4 100644
--- a/ProofreadPage.body.php
+++ b/ProofreadPage.body.php
@@ -609,7 +609,7 @@
                if( $from || $to || $include ) {
                        $pages = array();
 
-                       if( empty( $links ) ) {
+                       if( $links === null ) {
                                $from = ( $from === null ) ? null : 
$wgContLang->parseFormattedNumber( $from );
                                $to = ( $to === null ) ? null : 
$wgContLang->parseFormattedNumber( $to );
                                $step = ( $step === null ) ? null : 
$wgContLang->parseFormattedNumber( $step );

-- 
To view, visit https://gerrit.wikimedia.org/r/94331
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I5975d193f192ca0746c30ce998a29206412b403b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ProofreadPage
Gerrit-Branch: master
Gerrit-Owner: Tpt <[email protected]>
Gerrit-Reviewer: Rtdwivedi <[email protected]>
Gerrit-Reviewer: Tpt <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to