jenkins-bot has submitted this change and it was merged. Change subject: Replace == with isset ......................................................................
Replace == with isset The coding conventions suggest avoiding ==, and for this condition definedness is actually more relevant than whether the string has any text. Change-Id: I15b422d3345bf4522e68a17dce9682ff28484559 --- M Cite_body.php 1 file changed, 1 insertion(+), 1 deletion(-) Approvals: Jforrester: Looks good to me, approved jenkins-bot: Verified diff --git a/Cite_body.php b/Cite_body.php index b2ec7cc..c28f3f8 100644 --- a/Cite_body.php +++ b/Cite_body.php @@ -720,7 +720,7 @@ $this->referencesKey( $val['follow'] ), $text )->inContentLanguage()->plain(); - } elseif ( $val['text'] == '' ) { + } elseif ( !isset( $val['text'] ) ) { return wfMessage( 'cite_references_link_one', $this->referencesKey( $key ), -- To view, visit https://gerrit.wikimedia.org/r/164085 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I15b422d3345bf4522e68a17dce9682ff28484559 Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/extensions/Cite Gerrit-Branch: master Gerrit-Owner: Amire80 <amir.ahar...@mail.huji.ac.il> Gerrit-Reviewer: Jackmcbarn <jackmcb...@gmail.com> Gerrit-Reviewer: Jforrester <jforres...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits