Julio Montoya 11 years ago
parent
commit
3e05713a96
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main/inc/ajax/online.ajax.php

+ 2 - 2
main/inc/ajax/online.ajax.php

@@ -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) {