From 031dbdc2b24ae3f712710a883d16751cd8623820 Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Wed, 5 Sep 2012 12:51:48 +0000 Subject: [PATCH] Fixed bug in a SQL query in the libs/pagination.php file --- src/messenger/webim/libs/pagination.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,