]> git.mxchange.org Git - mailer.git/blobdiff - inc/callback-functions.php
Fixes and cleanups
[mailer.git] / inc / callback-functions.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']),