From d3d47d9604a0aa48ec0b05552f0efe8ab26ae78e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 11 Aug 2011 17:53:33 +0000 Subject: [PATCH] More fixes ... --- inc/callback-functions.php | 6 ++++++ inc/modules/admin/admin-inc.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/inc/callback-functions.php b/inc/callback-functions.php index c8a4e05255..ecd9dec87d 100644 --- a/inc/callback-functions.php +++ b/inc/callback-functions.php @@ -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']), diff --git a/inc/modules/admin/admin-inc.php b/inc/modules/admin/admin-inc.php index e96285a86b..395535e502 100644 --- a/inc/modules/admin/admin-inc.php +++ b/inc/modules/admin/admin-inc.php @@ -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] . '`'; -- 2.39.5