Yaron Koren has uploaded a new change for review.

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

Change subject: Fix for 07f9ec1 - added needed check
......................................................................

Fix for 07f9ec1 - added needed check

Change-Id: Iae44cdb3b99d32437823361e4847efda95e5b5ba
---
M CargoSQLQuery.php
1 file changed, 3 insertions(+), 1 deletion(-)


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

diff --git a/CargoSQLQuery.php b/CargoSQLQuery.php
index ca112fc..5b1820c 100644
--- a/CargoSQLQuery.php
+++ b/CargoSQLQuery.php
@@ -441,7 +441,9 @@
 
                                        // If we couldn't find a table name,
                                        // throw an error.
-                                       throw new MWException( "Error: no field 
named \"$fieldName\" found for any of the specified database tables." );
+                                       if ( $tableName == '' ) {
+                                               throw new MWException( "Error: 
no field named \"$fieldName\" found for any of the specified database tables." 
);
+                                       }
                                }
                        }
                        // Fix alias.

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iae44cdb3b99d32437823361e4847efda95e5b5ba
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Cargo
Gerrit-Branch: master
Gerrit-Owner: Yaron Koren <[email protected]>

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

Reply via email to