Yaron Koren has uploaded a new change for review.

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

Change subject: Small fixes to Ic674602d
......................................................................

Small fixes to Ic674602d

Change-Id: Id3640be3f966fb519351ba25bb6d1607e822cd8f
---
M specials/CargoExport.php
1 file changed, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Cargo 
refs/changes/68/200868/1

diff --git a/specials/CargoExport.php b/specials/CargoExport.php
index 79ff1c0..15f7404 100644
--- a/specials/CargoExport.php
+++ b/specials/CargoExport.php
@@ -98,10 +98,10 @@
                        $queryResults = $sqlQuery->run();
 
                        foreach ( $queryResults as $queryResult ) {
-                               if ( $queryResult['name'] == '' ) {
-                                       $eventTitle = reset($queryResult);
-                               } else {
+                               if ( array_key_exists( 'name', $queryResult ) ) 
{
                                        $eventTitle = $queryResult['name'];
+                               } else {
+                                       $eventTitle = reset( $queryResult );
                                }
                                $title = Title::newFromText( 
$queryResult['_pageName'] );
                                $displayedArray[] = array(

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id3640be3f966fb519351ba25bb6d1607e822cd8f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Cargo
Gerrit-Branch: master
Gerrit-Owner: Yaron Koren <yaro...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to