diff --git a/upload/common.php b/upload/common.php index 8dc975fe2..2400191f3 100644 --- a/upload/common.php +++ b/upload/common.php @@ -501,7 +501,7 @@ class cache_sqlite extends cache_common function rm ($name = '') { - if($this->prefix . $name) + if($name) { $this->db->shard($this->prefix . $name); $result = $this->db->query("DELETE FROM ". $this->cfg['table_name'] ." WHERE cache_name = '". sqlite_escape_string($this->prefix . $name) ."'"); @@ -668,7 +668,7 @@ class sqlite_common extends cache_common function rm ($name = '') { - if($this->prefix . $name) + if($name) { $this->db->shard($this->prefix . $name); $result = $this->db->query("DELETE FROM ". $this->cfg['table_name'] ." WHERE cache_name = '". sqlite_escape_string($this->prefix . $name) ."'"); @@ -986,7 +986,7 @@ class cache_file extends cache_common function rm ($name = '') { $clear = false; - if($this->prefix . $name) + if($name) { $filename = $this->dir . clean_filename($this->prefix . $name) . '.php'; if (file_exists($filename)) diff --git a/upload/config.php b/upload/config.php index f27513553..9d7912d16 100644 --- a/upload/config.php +++ b/upload/config.php @@ -56,8 +56,8 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do // Increase number of revision after update $bb_cfg['tp_version'] = '2.5 Beta'; -$bb_cfg['tp_release_state'] = 'R421'; -$bb_cfg['tp_release_date'] = '23-05-2012'; +$bb_cfg['tp_release_state'] = 'R423'; +$bb_cfg['tp_release_date'] = '27-05-2012'; // Database $charset = 'utf8';