mirror of
https://github.com/Mibew/i18n.git
synced 2025-02-02 09:34:41 +03:00
Fixed bug in a SQL query in the libs/pagination.php file
This commit is contained in:
parent
31d689aa0d
commit
031dbdc2b2
@ -92,7 +92,7 @@ function select_with_pagintation($fields, $table, $conditions, $order, $countfie
|
|||||||
$db = Database::getInstance();
|
$db = Database::getInstance();
|
||||||
|
|
||||||
list($count) = $db->query(
|
list($count) = $db->query(
|
||||||
"select count(". ($countfields ? $countfieds : "*") .") from {$table} " .
|
"select count(". ($countfields ? $countfields : "*") .") from {$table} " .
|
||||||
"where " . (count($conditions) ? implode(" and ", $conditions) : "") .
|
"where " . (count($conditions) ? implode(" and ", $conditions) : "") .
|
||||||
($order ? " " . $order : ""),
|
($order ? " " . $order : ""),
|
||||||
$values,
|
$values,
|
||||||
|
Loading…
Reference in New Issue
Block a user