diff options
Diffstat (limited to 'admin/include/functions_upgrade.php')
-rw-r--r-- | admin/include/functions_upgrade.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/admin/include/functions_upgrade.php b/admin/include/functions_upgrade.php index 349efa205..ed4b0f410 100644 --- a/admin/include/functions_upgrade.php +++ b/admin/include/functions_upgrade.php @@ -314,11 +314,9 @@ function upgrade_db_connect() try { - $pwg_db_link = pwg_db_connect($conf['db_host'], $conf['db_user'], $conf['db_password'], $conf['db_base']); - if ($pwg_db_link) - { - pwg_db_check_version(); - } + pwg_db_connect($conf['db_host'], $conf['db_user'], + $conf['db_password'], $conf['db_base']); + pwg_db_check_version(); } catch (Exception $e) { |