]> git.mxchange.org Git - mailer.git/blobdiff - inc/patch-system.php
Fix for 'array-to-string-conversion' bug in request-functions.php
[mailer.git] / inc / patch-system.php
index c0daae62382570b7ea3c173c066018559883ab39..e36a18adb1723e4058d4c2886e5c2941947bf9dc 100644 (file)
@@ -38,11 +38,11 @@ if (!defined('__SECURITY')) {
 }
 
 // Check for patch level differences between databases and current hard-coded
-if (CURR_SVN_REVISION > $_CONFIG['patch_level']) {
+if ((constant('CURR_SVN_REVISION') > getConfig('patch_level')) || (getConfig('patch_level') == "CURR_SVN_REVISION") || (getConfig('patch_ctime') == "UNIX_TIMES")) {
        // Update database and CONFIG array
-       UPDATE_CONFIG(array("patch_level", "patch_ctime"), array(CURR_SVN_REVISION, "UNIX_TIMESTAMP()"));
-       $_CONFIG['patch_level'] = CURR_SVN_REVISION;
-       $_CONFIG['patch_ctime'] = time();
+       UPDATE_CONFIG(array("patch_level", "patch_ctime"), array(constant('CURR_SVN_REVISION'), "UNIX_TIMESTAMP()"));
+       setConfigEntry('patch_level', constant('CURR_SVN_REVISION'));
+       setConfigEntry('patch_ctime', time());
 } // END - if
 
 //