error check for cache query
git-svn-id: file:///home/shish/svn/shimmie2/trunk@452 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
ea65ce6605
commit
0b555d0926
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ class Database {
|
|||
public function cache_execute($time, $query, $args=array()) {
|
||||
global $config;
|
||||
if($config->get_bool('db_cache')) {
|
||||
return $this->db->CacheExecute($time, $query, $args);
|
||||
return $this->error_check($this->db->CacheExecute($time, $query, $args));
|
||||
}
|
||||
else {
|
||||
return $this->error_check($this->db->Execute($query, $args));
|
||||
|
|
Reference in a new issue