From d70bfbcce01e4830d4a3d0dfb4a34efe340a1f85 Mon Sep 17 00:00:00 2001 From: novagen Date: Tue, 26 Oct 2010 10:23:04 +0200 Subject: [PATCH] Fixed a bug in function db_build_select --- src/messenger/webim/libs/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/messenger/webim/libs/common.php b/src/messenger/webim/libs/common.php index 6420dbf3..1707cb8b 100644 --- a/src/messenger/webim/libs/common.php +++ b/src/messenger/webim/libs/common.php @@ -362,7 +362,7 @@ function db_build_select($fields, $table, $conditions, $orderandgroup) { global $mysqlprefix; $condition = count($conditions) > 0 ? " where ".implode(" and ", $conditions) : ""; 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) {