From: Roland Häder Date: Thu, 11 Aug 2011 17:53:33 +0000 (+0000) Subject: More fixes ... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d3d47d9604a0aa48ec0b05552f0efe8ab26ae78e;p=mailer.git More fixes ... --- 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] . '`';