diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2012-12-12 22:18:16 +0300 |
---|---|---|
committer | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2012-12-12 22:21:28 +0300 |
commit | 81578371f8a571e0f099eb896636e0a15d87f081 (patch) | |
tree | c6f1edb3821d171467f2c2afae22091b5866550c | |
parent | 5bf961b06a346070b02bd3c1a9ea72974f5f1638 (diff) | |
download | nextcloud-server-81578371f8a571e0f099eb896636e0a15d87f081.tar.gz nextcloud-server-81578371f8a571e0f099eb896636e0a15d87f081.zip |
Close DB connection as it is no longer required. Fix #638
-rw-r--r-- | lib/setup.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/setup.php b/lib/setup.php index a9bdba73b63..0d9109ac7b6 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') { |