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
					
				| @ -80,7 +80,7 @@ class Database { | |||||||
| 	public function cache_execute($time, $query, $args=array()) { | 	public function cache_execute($time, $query, $args=array()) { | ||||||
| 		global $config; | 		global $config; | ||||||
| 		if($config->get_bool('db_cache')) { | 		if($config->get_bool('db_cache')) { | ||||||
| 			return $this->db->CacheExecute($time, $query, $args); | 			return $this->error_check($this->db->CacheExecute($time, $query, $args)); | ||||||
| 		} | 		} | ||||||
| 		else { | 		else { | ||||||
| 			return $this->error_check($this->db->Execute($query, $args)); | 			return $this->error_check($this->db->Execute($query, $args)); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user