Fixed bug in a SQL query in the libs/pagination.php file

This commit is contained in:
Dmitriy Simushev 2012-09-05 12:51:48 +00:00
parent 31d689aa0d
commit 031dbdc2b2

View File

@ -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,