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:
shish 2007-08-08 06:16:13 +00:00
parent ea65ce6605
commit 0b555d0926

View file

@ -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));