Addshore has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/78516


Change subject: Fix undefined offset when loading special page
......................................................................

Fix undefined offset when loading special page

This was caught by the tests I have added
in the follow up commit
Change-Id: I85271ade7711f1138b1f25777e1a7f99855d0e2a
---
M repo/includes/specials/SpecialEntitiesWithoutLabel.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/16/78516/1

diff --git a/repo/includes/specials/SpecialEntitiesWithoutLabel.php 
b/repo/includes/specials/SpecialEntitiesWithoutLabel.php
index 19f1205..185a8e9 100644
--- a/repo/includes/specials/SpecialEntitiesWithoutLabel.php
+++ b/repo/includes/specials/SpecialEntitiesWithoutLabel.php
@@ -67,7 +67,7 @@
                $this->type = null;
                if ( $subPage !== null ) {
                        $parts = explode( '/', $subPage );
-                       if ( count( $parts >= 2 ) ) {
+                       if ( array_key_exists( 1, $parts ) ) {
                                $this->type = $parts[1];
                        }
                        $this->language = $parts[0];

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I85271ade7711f1138b1f25777e1a7f99855d0e2a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Addshore <[email protected]>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to