Patch for patch-system... ;-)
authorRoland Häder <roland@mxchange.org>
Fri, 28 Nov 2008 19:48:36 +0000 (19:48 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 28 Nov 2008 19:48:36 +0000 (19:48 +0000)
inc/databases.php
inc/patch-system.php

index d0a5cf6..870470b 100644 (file)
@@ -114,7 +114,7 @@ define('USAGE_BASE', "usage");
 define('SERVER_URL', "http://www.mxchange.org");
 
 // This current patch level
-define('CURR_SVN_REVISION', "577");
+define('CURR_SVN_REVISION', "578");
 
 // Take a prime number which is long (if you know a longer one please try it out!)
 define('_PRIME', 591623);
index c0daae6..37de071 100644 (file)
@@ -38,7 +38,7 @@ if (!defined('__SECURITY')) {
 }
 
 // Check for patch level differences between databases and current hard-coded
-if (CURR_SVN_REVISION > $_CONFIG['patch_level']) {
+if ((CURR_SVN_REVISION > $_CONFIG['patch_level']) || ($_CONFIG['patch_level'] == "CURR_SVN_REVISION") || ($_CONFIG['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;