mirror of
https://github.com/Mibew/i18n.git
synced 2025-02-02 17:44:42 +03:00
Fixed a bug in function db_build_select
This commit is contained in:
parent
a0a9a7f708
commit
d70bfbcce0
@ -362,7 +362,7 @@ function db_build_select($fields, $table, $conditions, $orderandgroup) {
|
|||||||
global $mysqlprefix;
|
global $mysqlprefix;
|
||||||
$condition = count($conditions) > 0 ? " where ".implode(" and ", $conditions) : "";
|
$condition = count($conditions) > 0 ? " where ".implode(" and ", $conditions) : "";
|
||||||
if($orderandgroup) $orderandgroup = " ".$orderandgroup;
|
if($orderandgroup) $orderandgroup = " ".$orderandgroup;
|
||||||
return "select $fields from $mysqlprefix . $table$condition$orderandgroup";
|
return "select $fields from $table$condition$orderandgroup";
|
||||||
}
|
}
|
||||||
|
|
||||||
function db_rows_count($table,$conditions,$countfields, $link) {
|
function db_rows_count($table,$conditions,$countfields, $link) {
|
||||||
|
Loading…
Reference in New Issue
Block a user