git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@423 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
nanosimbiot 2012-05-27 11:59:11 +00:00
commit 3b51ac2533
2 changed files with 5 additions and 5 deletions

View file

@ -501,7 +501,7 @@ class cache_sqlite extends cache_common
function rm ($name = '') function rm ($name = '')
{ {
if($this->prefix . $name) if($name)
{ {
$this->db->shard($this->prefix . $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) ."'"); $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 = '') function rm ($name = '')
{ {
if($this->prefix . $name) if($name)
{ {
$this->db->shard($this->prefix . $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) ."'"); $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 = '') function rm ($name = '')
{ {
$clear = false; $clear = false;
if($this->prefix . $name) if($name)
{ {
$filename = $this->dir . clean_filename($this->prefix . $name) . '.php'; $filename = $this->dir . clean_filename($this->prefix . $name) . '.php';
if (file_exists($filename)) if (file_exists($filename))

View file

@ -56,8 +56,8 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do
// Increase number of revision after update // Increase number of revision after update
$bb_cfg['tp_version'] = '2.5 Beta'; $bb_cfg['tp_version'] = '2.5 Beta';
$bb_cfg['tp_release_state'] = 'R421'; $bb_cfg['tp_release_state'] = 'R423';
$bb_cfg['tp_release_date'] = '23-05-2012'; $bb_cfg['tp_release_date'] = '27-05-2012';
// Database // Database
$charset = 'utf8'; $charset = 'utf8';