]> git.mxchange.org Git - mailer.git/blobdiff - inc/callback-functions.php
ext-admins must be checked here, first admin had never 'allow'
[mailer.git] / inc / callback-functions.php
index d42f017e3ae3fc1ca7f0539e8fbcfc297c493790..d22e6ee36b26337a3d90f6f6d322082f69c3207b 100644 (file)
@@ -541,10 +541,13 @@ function doXmlStatusChangeList ($resource, $attributes) {
        if (count($attributes) > 0) {
                // Please don't add any attributes to foo-list nodes
                reportBug(__FUNCTION__, __LINE__, 'Expected 0 attributes because this is a foo-list node, got ' . count($attributes));
-       } elseif (!isset($GLOBALS['__XML_ARGUMENTS']['doXmlCallbackFunction']['status_list'])) {
+       } elseif (!isset($GLOBALS['__XML_ARGUMENTS']['doXmlCallbackFunction'])) {
                // doXmlCallbackFunction is missing
-               reportBug(__FUNCTION__, __LINE__, 'Required XML node callback-function/status-list not included around this node. Please fix your XML.');
+               reportBug(__FUNCTION__, __LINE__, 'Required XML node callback-function not included around this node. Please fix your XML.');
        }
+
+       // Add the entry to the list
+       $GLOBALS['__XML_ARGUMENTS']['doXmlCallbackFunction']['status_list'] = array();
 }
 
 // Handles the XML node 'status-change-list-entry'
@@ -1359,5 +1362,12 @@ function doXmlCallbackFunctionExecute ($callbackName, $args, $columnIndex, $cont
        call_user_func_array($callbackName, $args);
 }
 
+// For 'doing' add referral level, the column-index is required
+function addXmlSpecialAdminAddDoReferralLevels () {
+       // So set it all here
+       $GLOBALS['__COLUMN_INDEX']['doXmlCallbackFunction']  = 'column';
+       $GLOBALS['__XML_ARGUMENTS']['doXmlCallbackFunction']['column_index'] = 'column';
+}
+
 // [EOF]
 ?>