mirror of
				https://gitlab.com/ruany/litebans-php.git
				synced 2025-10-30 14:32:25 +00:00 
			
		
		
		
	Fix error with info.php as well
This commit is contained in:
		
							parent
							
								
									ee53e992a4
								
							
						
					
					
						commit
						534e0d2ca2
					
				
							
								
								
									
										5
									
								
								info.php
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								info.php
									
									
									
									
									
								
							| @ -132,6 +132,7 @@ $st = $page->conn->prepare($query); | |||||||
| 
 | 
 | ||||||
| if ($st->execute(array($id))) { | if ($st->execute(array($id))) { | ||||||
|     ($row = $st->fetch()) or die($page->lang->info_error_notfound1 . $type . $page->lang->info_error_notfound2); |     ($row = $st->fetch()) or die($page->lang->info_error_notfound1 . $type . $page->lang->info_error_notfound2); | ||||||
|  |     $st->closeCursor(); | ||||||
| 
 | 
 | ||||||
|     $player_name = $page->get_name($row['uuid']); |     $player_name = $page->get_name($row['uuid']); | ||||||
| 
 | 
 | ||||||
| @ -168,7 +169,8 @@ if ($st->execute(array($id))) { | |||||||
|     foreach ($map as $key => $val) { |     foreach ($map as $key => $val) { | ||||||
|         if ($permanent && |         if ($permanent && | ||||||
|             ($key === $page->lang->info_banned_expiry || $key === $page->lang->info_muted_expiry || $key === $page->lang->info_warn_expiry) && |             ($key === $page->lang->info_banned_expiry || $key === $page->lang->info_muted_expiry || $key === $page->lang->info_warn_expiry) && | ||||||
|             $val === $permanent_val) { |             $val === $permanent_val | ||||||
|  |         ) { | ||||||
|             // skip "Expires" row if punishment is permanent
 |             // skip "Expires" row if punishment is permanent
 | ||||||
|             continue; |             continue; | ||||||
|         } |         } | ||||||
| @ -179,4 +181,3 @@ if ($st->execute(array($id))) { | |||||||
| 
 | 
 | ||||||
|     $page->print_footer(); |     $page->print_footer(); | ||||||
| } | } | ||||||
| $st->closeCursor(); |  | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 ruan
						ruan