01tonythomas has uploaded a new change for review.

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

Change subject: Fix Undefined index in CirrusSearch/includes/Hooks.php
......................................................................

Fix Undefined index in CirrusSearch/includes/Hooks.php

Minor syntax issue with the count( $array ) statement

Bug: T108938
Change-Id: I44c56e8f4df03c3c53959554509cca26ca6e1aaf
---
M includes/Hooks.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CirrusSearch 
refs/changes/35/242335/1

diff --git a/includes/Hooks.php b/includes/Hooks.php
index 83eca40..5047e05 100644
--- a/includes/Hooks.php
+++ b/includes/Hooks.php
@@ -368,7 +368,7 @@
 
                foreach ( $lines as $line ) {
                        $linePieces = explode( ':', $line, 2 );
-                       if ( count( $linePieces < 2 ) ) {
+                       if ( count( $linePieces ) < 2 ) {
                                // Skip improperly formatted lines without a 
key:value
                                continue;
                        }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I44c56e8f4df03c3c53959554509cca26ca6e1aaf
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: 01tonythomas <[email protected]>

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

Reply via email to