]> git.mxchange.org Git - mailer.git/blobdiff - inc/loader/load-modules.php
Handling of invalid referal ids fixed
[mailer.git] / inc / loader / load-modules.php
index a0831eae223c8afb6f42399c5e69aa9896102b0a..4ace00bb02ffa0f7b2614646a9a66b8cee088a1c 100644 (file)
@@ -92,7 +92,7 @@ if (($GLOBALS['cache_instance']->loadCacheFile('modules')) && ($GLOBALS['cache_i
        if (isExtensionInstalledAndNewer('sql_patches', '0.3.6')) {
                // Load has_menu
                $result = SQL_QUERY('SELECT
-       `id`, `module`, `title`, `locked`, `hidden`, `admin_only`, `title`, `mem_only`, `has_menu`
+       `id`,`module`,`title`,`locked`,`hidden`,`admin_only`,`title`,`mem_only`,`has_menu`
 FROM
        `{?_MYSQL_PREFIX?}_mod_reg`
 ORDER BY
@@ -100,7 +100,7 @@ ORDER BY
        } else {
                // Don't load has_menu
                $result = SQL_QUERY('SELECT
-       `id`, `module`, `title`, `locked`, `hidden`, `admin_only`, `title`, `mem_only`
+       `id`,`module`,`title`,`locked`,`hidden`,`admin_only`,`title`,`mem_only`
 FROM
        `{?_MYSQL_PREFIX?}_mod_reg`
 ORDER BY
@@ -117,6 +117,7 @@ ORDER BY
        SQL_FREERESULT($result);
 
        // Close the cache
+       $GLOBALS['cache_instance']->storeExtensionVersion('mods');
        $GLOBALS['cache_instance']->storeExtensionVersion('sql_patches');
        $GLOBALS['cache_instance']->finalize();
 }