From ecf2caf7fb137d0cd37746cd5db7c14b5599a2e3 Mon Sep 17 00:00:00 2001 From: canyonknight Date: Sun, 3 Feb 2013 16:26:32 +0000 Subject: Remove unneeded database connection calls Since all database related functions will establish a connection when needed, there is no need to pre-emptively try and establish a database connection. Signed-off-by: canyonknight Signed-off-by: Lukas Fleischer --- web/html/account.php | 1 - 1 file changed, 1 deletion(-) (limited to 'web/html/account.php') diff --git a/web/html/account.php b/web/html/account.php index 7cd02634..c367914f 100644 --- a/web/html/account.php +++ b/web/html/account.php @@ -20,7 +20,6 @@ $action = in_request("Action"); if (isset($_COOKIE["AURSID"])) { # visitor is logged in # - $dbh = DB::connect(); $atype = account_from_sid($_COOKIE["AURSID"]); if ($action == "SearchAccounts") { -- cgit v1.2.3-24-g4f1b