From 45c0e1ae617ef202886b8151e667bbcf6b87f818 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Mon, 30 Dec 2013 19:21:18 -0500 Subject: [PATCH] Avoid fatal error unallowed operand types --- main/inc/ajax/model.ajax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/inc/ajax/model.ajax.php b/main/inc/ajax/model.ajax.php index 8458177cd8..0dbeaa9f2b 100644 --- a/main/inc/ajax/model.ajax.php +++ b/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) {