From 1deefd369493360a7ffcc56526d259e5baef3d15 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Tue, 21 Feb 2012 20:19:21 -0500 Subject: [PATCH] Fix warnings --- src/common/settings.php | 2 +- src/windows/add_db.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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();