|
@@ -14,8 +14,8 @@ switch($action) {
|
|
|
$images_to_show = 9;
|
|
|
|
|
|
$page = intval($_REQUEST['online_page_nr']);
|
|
|
- $max_page = round(who_is_online_count()/$images_to_show);
|
|
|
- $page_rows = ($page-1)*9 + 1;
|
|
|
+ $max_page = ceil(who_is_online_count()/$images_to_show);
|
|
|
+ $page_rows = ($page-1)*9;
|
|
|
|
|
|
if (!empty($max_page) && $page <= $max_page) {
|
|
|
if (isset($_GET['cidReq']) && strlen($_GET['cidReq']) > 0) {
|