mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
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 <canyonknight@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
cf2ab50b82
commit
ecf2caf7fb
4 changed files with 0 additions and 5 deletions
|
@ -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") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue