summaryrefslogtreecommitdiffstats
path: root/web/lib/acctfuncs.inc
diff options
context:
space:
mode:
Diffstat (limited to 'web/lib/acctfuncs.inc')
-rw-r--r--web/lib/acctfuncs.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/lib/acctfuncs.inc b/web/lib/acctfuncs.inc
index 1ee2d9e8..e8e03cd0 100644
--- a/web/lib/acctfuncs.inc
+++ b/web/lib/acctfuncs.inc
@@ -426,6 +426,8 @@ function search_results_page($UTYPE,$O=0,$SB="",$U="",$T="",
$search_vars[] = "SB";
$q.= "LIMIT ". $OFFSET . ", " . $HITS_PER_PAGE;
+ $dbh = db_connect();
+
$result = db_query($q, $dbh);
if (!$result) {
print __("No results matched your search criteria.");