diff --git a/src/common/settings.php b/src/common/settings.php index 83db502..e94a7d3 100644 --- a/src/common/settings.php +++ b/src/common/settings.php @@ -62,7 +62,7 @@ class Settings { /** * Output the settings on destruct */ - protected function __destruct() + public function __destruct() { file_put_contents(BASE_DIR . '/settings.json', json_encode($this->current)); } diff --git a/src/windows/add_db.php b/src/windows/add_db.php index 77b5bf7..4c66680 100644 --- a/src/windows/add_db.php +++ b/src/windows/add_db.php @@ -190,10 +190,9 @@ class Add_DB extends GtkWindow { /** * Set defaults for new database type * - * @param GtkComboBox $combo * @return void */ - public function change_db($combo) + public function change_db() { $new_db = $this->dbtype->get_active_text();