From 5da29b883740e6c6db3e0ad9c045c080a8f8946a Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Mon, 9 Mar 2009 16:03:48 +0000 Subject: Fix for ticket #135 --- modules/server_add/helpers/server_add.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/server_add/helpers') diff --git a/modules/server_add/helpers/server_add.php b/modules/server_add/helpers/server_add.php index e51d3d98..10a7c626 100644 --- a/modules/server_add/helpers/server_add.php +++ b/modules/server_add/helpers/server_add.php @@ -18,8 +18,10 @@ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ class server_add_Core { - static function check_config() { - $paths = unserialize(module::get_var("server_add", "authorized_paths")); + static function check_config($paths=null) { + if ($paths === null) { + $paths = unserialize(module::get_var("server_add", "authorized_paths")); + } if (empty($paths)) { site_status::warning( t("Server Add needs configuration. Configure it now!", -- cgit v1.2.3