1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02:00

Additional checks for constants. Disable addon lookup cache in debug mode.

This commit is contained in:
Cameron
2021-01-05 10:04:26 -08:00
parent 7dec5cf40e
commit 741d91a76b
5 changed files with 13 additions and 7 deletions

View File

@@ -258,7 +258,7 @@ class admin_start
require(e_ADMIN."ver.php");
if(!empty($e107info['e107_version']) && (e_VERSION !== $e107info['e107_version']))
if(!empty($e107info['e107_version']) && defined('e_VERSION') && (e_VERSION !== $e107info['e107_version']))
{
e107::getConfig()->set('version', $e107info['e107_version'])->save(false,true,false);