summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2008-12-31 16:09:04 +0100
committerLoui Chang <louipc.ist@gmail.com>2008-12-31 16:09:04 +0100
commit1529020e79449e3f29246a633e86a6745d0f10a7 (patch)
tree3ca75e95687e5a64044ddc80657d471c019d3b53
parent3b4662a58e0673de4172e5b0e964c53a0a67af59 (diff)
downloadaur-1529020e79449e3f29246a633e86a6745d0f10a7.tar.gz
aur-1529020e79449e3f29246a633e86a6745d0f10a7.tar.xz
Get db connection for accounts search results.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
-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.");