1
0

Fixing error in search library

This commit is contained in:
Stefan Frech
2008-06-28 09:51:39 +00:00
committed by Jonas Kattendick
parent c25d9cbc46
commit 6b4bacaddb

View File

@@ -233,7 +233,9 @@ function assemble_query ($criteria, $searchfields) {
} //foreach $whereCriterias
$whereClause .= str_repeat(')', $nesting);
$whereClause = trim ($whereClause);
if ($whereClause != '') {
$query = sprintf ("SELECT bookmark.title,
bookmark.url,
bookmark.description,
@@ -254,6 +256,10 @@ function assemble_query ($criteria, $searchfields) {
$mysql->escape ($username),
$whereClause);
}
else {
$query = false;
}
return $query;
}