Fix page selector for three pages
This commit is contained in:
		
							parent
							
								
									25e06f9ece
								
							
						
					
					
						commit
						4a791af046
					
				
							
								
								
									
										2
									
								
								user.php
								
								
								
								
							
							
						
						
									
										2
									
								
								user.php
								
								
								
								
							|  | @ -230,7 +230,7 @@ if(isset($_GET["p"])){ | |||
| 		$ps_margin = 2; // Amount of page numbers to show after and before the actual one
 | ||||
| 		 | ||||
| 			// Limit displayed numbers to the existing ones (bound logic)
 | ||||
| 		if($_GET["page"] - $ps_margin < 1) $ps_init = 1; | ||||
| 		if($_GET["page"] - $ps_margin <= 1) $ps_init = 1; | ||||
| 		else if($_GET["page"] + $ps_margin > $p_total) $ps_init = $p_total - $ps_margin * 2; | ||||
| 		else $ps_init = $_GET["page"] - $ps_margin; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue