diff --git a/src/messenger/webim/libs/pagination.php b/src/messenger/webim/libs/pagination.php index 1a1c65cb..1ac0ecb1 100644 --- a/src/messenger/webim/libs/pagination.php +++ b/src/messenger/webim/libs/pagination.php @@ -92,7 +92,7 @@ function select_with_pagintation($fields, $table, $conditions, $order, $countfie $db = Database::getInstance(); list($count) = $db->query( - "select count(". ($countfields ? $countfieds : "*") .") from {$table} " . + "select count(". ($countfields ? $countfields : "*") .") from {$table} " . "where " . (count($conditions) ? implode(" and ", $conditions) : "") . ($order ? " " . $order : ""), $values,