Avoid fatal error unallowed operand types

1.9.x
Yannick Warnier 12 years ago
parent fd01341240
commit 45c0e1ae61
  1. 2
      main/inc/ajax/model.ajax.php

@ -343,7 +343,7 @@ switch ($action) {
$total_pages = 0;
if ($count > 0) {
if (!empty($limit)) {
$total_pages = ceil($count/$limit);
$total_pages = ceil((float)$count/(float)$limit);
}
}
if ($page > $total_pages) {

Loading…
Cancel
Save