diff options
author | canyonknight <canyonknight@gmail.com> | 2013-02-03 17:26:32 +0100 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2013-02-10 12:10:38 +0100 |
commit | ecf2caf7fb137d0cd37746cd5db7c14b5599a2e3 (patch) | |
tree | 9978e168d514049c717104e7b5271f7f65c959bd /web/html/pkgsubmit.php | |
parent | cf2ab50b8239b75af5df60ee143f41fedb044dc8 (diff) | |
download | aur-ecf2caf7fb137d0cd37746cd5db7c14b5599a2e3.tar.gz aur-ecf2caf7fb137d0cd37746cd5db7c14b5599a2e3.tar.xz |
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>
Diffstat (limited to 'web/html/pkgsubmit.php')
-rw-r--r-- | web/html/pkgsubmit.php | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index 12203c4a..fefb31ec 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -356,7 +356,6 @@ if ($uid): # Update the backend database if (!$error) { - $dbh = DB::connect(); begin_atomic_commit(); $pdata = pkgdetails_by_pkgname($new_pkgbuild['pkgname']); |