define('SERVER_URL', "http://www.mxchange.org");
// This current patch level
-define('CURR_SVN_REVISION', "329");
+define('CURR_SVN_REVISION', "330");
// Take a prime number which is long (if you know a longer one please try it out!)
define('_PRIME', 591623);
if (FILE_READABLE($this->cache_inc)) {
// Prepare temporary array
$data = array();
+ $cache_version = null;
// Load cache file
$this->cache_data = implode("", file($this->cache_inc));
$this->cache_data = $data;
// Cache version found?
- if (isset($cache_version)) {
+ if ((isset($cache_version)) && (is_array($cache_version))) {
// Remember it as well...
$this->cache_version = $cache_version;
} // END - if
$ext_ver = GET_EXT_VERSION($ext_name);
// Write cache line to file
- @fwrite($this->cache_pointer, "\$cache_version = \"".$ext_ver."\";\n");
+ @fwrite($this->cache_pointer, "\$cache_version['".$ext_name."'] = \"".$ext_ver."\";\n");
} else {
// Cannot create file
ADD_FATAL(__FILE__."(".__LINE__."): ".CACHE_PROBLEMS_DETECTED);
//* DEBUG: */ echo __METHOD__.": ext_name={$ext_name},ext_ver={$ext_ver},cache_version={$this->cache_version}<br />\n";
// Compare both
- return ($ext_ver == $this->cache_version);
+ return ((isset($this->cache_version[$ext_name])) && ($this->cache_version[$ext_name] == $ext_ver));
}
function add_raw_row ($key, $value) {