X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-extensions.php;h=629cd10d5cf267703cbf53d6638f22919d8d86ca;hp=8a03e6c322abfb84268e25e486629ce33c326d06;hb=566cbcf381d60410b4c5b3a2fc4cd7bfdf49b8fc;hpb=e6f85f12e59fae9b013aa68edc27bbc2b69460f8 diff --git a/inc/modules/admin/what-extensions.php b/inc/modules/admin/what-extensions.php index 8a03e6c322..629cd10d5c 100644 --- a/inc/modules/admin/what-extensions.php +++ b/inc/modules/admin/what-extensions.php @@ -55,8 +55,9 @@ if (isGetRequestElementSet('reg_ext')) { // De-/activate extensions foreach (postRequestElement('sel') as $ext_id => $active) { // Shall we keep the extension always active? - if ((isset($GLOBALS['cache_array']['active_extensions'][getExtensionName($ext_id)])) && ($GLOBALS['cache_array']['active_extensions'][getExtensionName($ext_id)] == 'Y') && ($active != 'Y')) { + if ((isset($GLOBALS['cache_array']['always_active'][getExtensionName($ext_id)])) && ($GLOBALS['cache_array']['always_active'][getExtensionName($ext_id)] == 'Y') && ($active == 'Y')) { // Keep this extension active! + loadTemplate('admin_settings_saved', false, sprintf(getMessage('ADMIN_EXTENSION_ALWAYS_ACTIVE'), getExtensionName($ext_id))); } else { // De/activate extension $ACT = 'N'; setExtensionMode('deactivate'); @@ -303,6 +304,8 @@ ORDER BY `ext_name` ASC", __FILE__, __LINE__); $result = SQL_QUERY_ESC("SELECT `subject` FROM `{?_MYSQL_PREFIX?}_task_system` WHERE `id`=%s LIMIT 1", array(bigintval($ext_id)), __FILE__, __LINE__); list($subj) = SQL_FETCHROW($result); + + // Free result SQL_FREERESULT($result); // Disable cache update by default