]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/overview-inc.php
Global variables rewritten
[mailer.git] / inc / modules / admin / overview-inc.php
index a9a81337c8330f4e1f3f7ec590b4301548e72758..d823fd4676e2393291a5e4d31139c963f70a04d8 100644 (file)
@@ -38,8 +38,6 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
 }
 
 function OUTPUT_STANDARD_OVERVIEW(&$result_tasks) {
-       global $cacheArray;
-
        // First check for solved and not assigned tasks and assign them to current admin
        SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_task_system` SET assigned_admin='%s' WHERE assigned_admin < 1 AND status != 'NEW'",
                array(GET_CURRENT_ADMIN_ID()), __FILE__, __LINE__);
@@ -84,9 +82,9 @@ function OUTPUT_STANDARD_OVERVIEW(&$result_tasks) {
                                        EXTENSION_UPDATE($ext_name, $ext_ver);
                                } // END - if
 
-                               if (isset($cacheArray['active_extensions'][$ext_name])) {
+                               if (isset($GLOBALS['cache_array']['active_extensions'][$ext_name])) {
                                        // Maybe we want to keept the current extension active?
-                                       if (($cacheArray['active_extensions'][$ext_name] == "Y") && (!EXT_IS_ACTIVE($ext_name))) {
+                                       if (($GLOBALS['cache_array']['active_extensions'][$ext_name] == "Y") && (!EXT_IS_ACTIVE($ext_name))) {
                                                // Reactivate this extension!
                                                ACTIVATE_EXTENSION($ext_name);
                                        } // END - if