summaryrefslogtreecommitdiff
path: root/modules/server_add/helpers/server_add.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-03-09 16:03:48 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-03-09 16:03:48 +0000
commit5da29b883740e6c6db3e0ad9c045c080a8f8946a (patch)
tree106fd87961305f774d7d859cadb63795a145a9d2 /modules/server_add/helpers/server_add.php
parent83563ac91ac336375e2d0ce64534d8ece2d8f6f3 (diff)
Fix for ticket #135
Diffstat (limited to 'modules/server_add/helpers/server_add.php')
-rw-r--r--modules/server_add/helpers/server_add.php6
1 files changed, 4 insertions, 2 deletions
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. <a href=\"%url\">Configure it now!</a>",