execute should have default args arg
git-svn-id: file:///home/shish/svn/shimmie2/trunk@133 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
		
							parent
							
								
									83ab72332e
								
							
						
					
					
						commit
						f91d777045
					
				| @ -56,7 +56,7 @@ class Database { | |||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	public function execute($query, $args) { | 	public function execute($query, $args=array()) { | ||||||
| 		$result = $this->db->Execute($query, $args); | 		$result = $this->db->Execute($query, $args); | ||||||
| 		if($result === False) { | 		if($result === False) { | ||||||
| 			print "SQL Error: " . $this->db->ErrorMsg() . "<br>"; | 			print "SQL Error: " . $this->db->ErrorMsg() . "<br>"; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user