[fusion-commits] r1356 - sandbox/aboudreault/MapServer/php

svn_fusion at osgeo.org svn_fusion at osgeo.org
Mon Mar 31 17:04:04 EDT 2008


Author: aboudreault
Date: 2008-03-31 17:04:04 -0400 (Mon, 31 Mar 2008)
New Revision: 1356

Modified:
   sandbox/aboudreault/MapServer/php/Query.php
Log:
make query_*_alias working

Modified: sandbox/aboudreault/MapServer/php/Query.php
===================================================================
--- sandbox/aboudreault/MapServer/php/Query.php	2008-03-31 18:56:52 UTC (rev 1355)
+++ sandbox/aboudreault/MapServer/php/Query.php	2008-03-31 21:04:04 UTC (rev 1356)
@@ -182,7 +182,7 @@
             } else {
               $token = strtok($metadataItems, $tokenSeparator);
               while ($token !== false) {
-                  $aQueryItems[$token] = NULL;
+                  $aQueryItems[trim($token)] = NULL;
                   $token = strtok($tokenSeparator);
               }
             }
@@ -216,7 +216,7 @@
                 array_push($selFields, $key);
 
                 //we check if an alias if provided
-                if (isset($aQueryItems[$key]) && ($keyAlias != "")){
+                if (isset($aQueryItems[$key]) && ($aQueryItems[$key] != "")){
                     $key = $aQueryItems[$key];
                 }
 



More information about the fusion-commits mailing list