X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fcallback-functions.php;h=d22e6ee36b26337a3d90f6f6d322082f69c3207b;hb=1622d7d8b5c890391f98ac5d7f7be56fd79c4a8a;hp=d42f017e3ae3fc1ca7f0539e8fbcfc297c493790;hpb=5bb4af7ad275a532206a773edb2f36d5ad355e06;p=mailer.git diff --git a/inc/callback-functions.php b/inc/callback-functions.php index d42f017e3a..d22e6ee36b 100644 --- a/inc/callback-functions.php +++ b/inc/callback-functions.php @@ -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] ?>