diff options
Diffstat (limited to 'app/Model/ConfigModel.php')
-rw-r--r-- | app/Model/ConfigModel.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/app/Model/ConfigModel.php b/app/Model/ConfigModel.php index b45199fd..7f48f34f 100644 --- a/app/Model/ConfigModel.php +++ b/app/Model/ConfigModel.php @@ -52,14 +52,13 @@ class ConfigModel extends SettingModel * Replace database file with uploaded one * * @access public - * @return boolean + * @param string $file + * @return bool */ public function uploadDatabase($file) { - $this->db->closeConnection(); - $result = file_put_contents(DB_FILENAME, gzdecode(file_get_contents($file))); - return $result == false? false: true; + return file_put_contents(DB_FILENAME, gzdecode(file_get_contents($file))) !== false; } /** |