sql compliance
git-svn-id: file:///home/shish/svn/shimmie2/branches/branch_2.2@934 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
		
							parent
							
								
									5d42ee21de
								
							
						
					
					
						commit
						9993370fc6
					
				@ -192,7 +192,7 @@ class IPBan extends Extension {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	private function get_active_bans() {
 | 
						private function get_active_bans() {
 | 
				
			||||||
		global $database;
 | 
							global $database;
 | 
				
			||||||
		$bans = $database->get_all("SELECT * FROM bans WHERE (end_timestamp > ? OR isnull(end_timestamp))", array(time()));
 | 
							$bans = $database->get_all("SELECT * FROM bans WHERE (end_timestamp > ? OR end_timestamp is null)", array(time()));
 | 
				
			||||||
		if($bans) {return $bans;}
 | 
							if($bans) {return $bans;}
 | 
				
			||||||
		else {return array();}
 | 
							else {return array();}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user