More fixes ...
authorRoland Häder <roland@mxchange.org>
Thu, 11 Aug 2011 17:53:33 +0000 (17:53 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 11 Aug 2011 17:53:33 +0000 (17:53 +0000)
inc/callback-functions.php
inc/modules/admin/admin-inc.php

index c8a4e052551721de61a17641bddd9e1649bfe011..ecd9dec87d4d9a2b045e92bfec1ee570f4bcc76b 100644 (file)
@@ -1029,6 +1029,12 @@ function addXmlValueToCallbackAttributes ($element, $attributes, $extraKey = '',
                 * ALIAS and FUNCTION detected? This may happen with SQL queries
                 * like: UNIX_TIMESTAMP(`foo_timestamp`) AS `foo_timestamp`
                 */
+
+               // Fix missing 'NAME'
+               if (!isset($attributes['NAME'])) {
+                       $attributes['NAME'] = '';
+               } // END - if
+
                // Init array
                $array =  array(
                        'column'   => trim($attributes['VALUE']),
index e96285a86b54f800033f0906ea96f65b2153ac4e..395535e502949165ee9c6e136a9419b3e37d5a21 100644 (file)
@@ -1342,7 +1342,7 @@ function adminListEntries ($tableTemplate, $rowTemplate, $noEntryMessageId, $tab
        $SQL = 'SELECT ';
 
        // Get the sql part back from given array
-       $SQL .= getSqlPartFromXmlArray($columnArray);
+       $SQL .= getSqlPartFromXmlArray($columns);
 
        // Remove last commata and add FROM statement
        $SQL .= ' FROM `{?_MYSQL_PREFIX?}_' . $tableName[0] . '`';