diff options
Diffstat (limited to 'lib/setup.php')
-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') { |