X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-overview.php;h=3805b7734dce44e817784d0c4548e69d34ce0d31;hb=de5910b8e5deb9285a7ac57c26ebd894f4e1afbf;hp=44991b3b282478b053528b2c039ffb7f2cee3380;hpb=c5fbd4afb0965d5f3b504d0547e60affb51d52c7;p=mailer.git diff --git a/inc/modules/admin/what-overview.php b/inc/modules/admin/what-overview.php index 44991b3b28..3805b7734d 100644 --- a/inc/modules/admin/what-overview.php +++ b/inc/modules/admin/what-overview.php @@ -1,7 +1,7 @@ 0)) { - $OUT = ""; - foreach ($menuDesription 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' => $menuTitle[$key], + 'title' => $GLOBALS['menu']['title'][$key], 'text' => $value ); // 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 (!EXT_IS_ACTIVE("task")) { +} elseif ($taskExt === false) { + if (isExtensionActive('task')) { + // Output warning message + 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($_POST, $result_tasks); + outputSeletectedTasks(postRequestArray(), $result_tasks); } -// +// [EOF] ?>