[Pkg-owncloud-commits] [owncloud] 212/394: Close DB connection as it is no longer required. Fix #638
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:12:07 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.
commit 81578371f8a571e0f099eb896636e0a15d87f081
Author: Victor Dubiniuk <victor.dubiniuk at gmail.com>
Date: Wed Dec 12 22:18:16 2012 +0300
Close DB connection as it is no longer required. Fix #638
---
lib/setup.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/setup.php b/lib/setup.php
index a9bdba7..0d9109a 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -153,10 +153,10 @@ class OC_Setup {
if($result) {
$row=mysql_fetch_row($result);
}
+ mysql_close($connection);
if(!$result or $row[0]==0) {
OC_DB::createDbFromStructure('db_structure.xml');
}
- mysql_close($connection);
}
}
elseif($dbtype == 'pgsql') {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list