diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2012-12-18 01:33:50 -0800 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2012-12-18 01:33:50 -0800 |
commit | db30d8621e29cc4e32a11c8ee3bdfd92bd5cb6c9 (patch) | |
tree | 8846d50267a8757775886e87ac0e579bcf2b3fb1 /lib | |
parent | ad9420f7fd365030337ea93ec2a2675a125c0b83 (diff) | |
parent | 81578371f8a571e0f099eb896636e0a15d87f081 (diff) | |
download | nextcloud-server-db30d8621e29cc4e32a11c8ee3bdfd92bd5cb6c9.tar.gz nextcloud-server-db30d8621e29cc4e32a11c8ee3bdfd92bd5cb6c9.zip |
Merge pull request #848 from VicDeo/stable45
Close DB connection as it is no longer required. Fix #638
Diffstat (limited to 'lib')
-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') { |