X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-overview.php;h=3805b7734dce44e817784d0c4548e69d34ce0d31;hp=4f1a7073b46714444169be33505e8ed10cdb05e8;hb=0cbe2bfe902d26f0e99be6005140a9d8c350f017;hpb=d8148e3f1f3a6762b2e786dbe99ada269dcf2ea0 diff --git a/inc/modules/admin/what-overview.php b/inc/modules/admin/what-overview.php index 4f1a7073b4..3805b7734d 100644 --- a/inc/modules/admin/what-overview.php +++ b/inc/modules/admin/what-overview.php @@ -1,7 +1,7 @@ 0)) { - $OUT = ""; - foreach ($GLOBALS['menu']['description'] as $key => $value) - { + if ((is_array($GLOBALS['menu']['description'])) && (count($GLOBALS['menu']['description']) > 0)) { + $OUT = ''; + foreach ($GLOBALS['menu']['description'] as $key => $value) { // Prepare content $content = array( 'title' => $GLOBALS['menu']['title'][$key], @@ -72,21 +84,21 @@ if ($JOBS_DONE) { ); // Load row template - $OUT .= LOAD_TEMPLATE("admin_menu_hints_row", true, $content); - } + $OUT .= loadTemplate('admin_menu_hints_row', true, $content); + } // END - foreach // Load base template - LOAD_TEMPLATE("admin_menu_hints", false, $OUT); + loadTemplate('admin_menu_hints', false, $OUT); } -} elseif (!$taskExt) { - if (EXT_IS_ACTIVE("task")) { +} elseif ($taskExt === false) { + if (isExtensionActive('task')) { // Output warning message - LOAD_TEMPLATE("admin_settings_saved", false, sprintf(getMessage('EXTENSION_WARNING_EXT_INACTIVE'), "task")); + loadTemplate('admin_settings_saved', false, getMaskedMessage('EXTENSION_WARNING_EXT_INACTIVE', 'task')); } // List selected tasks on overview when task management is not active - OUTPUT_SELECTED_TASKS(REQUEST_POST_ARRAY(), $result_tasks); + outputSeletectedTasks(postRequestArray(), $result_tasks); } -// +// [EOF] ?>