diff options
author | svncommit <devs@roundcube.net> | 2006-05-01 17:19:45 +0000 |
---|---|---|
committer | svncommit <devs@roundcube.net> | 2006-05-01 17:19:45 +0000 |
commit | 97a915e66270ad83d1c5f8ddfc360032870e5dcd (patch) | |
tree | f5b59beda1484406c66cb3fc448c8bfb6dae84aa | |
parent | dd53e2b489e8787bb339511e33f2d6c4fd5efe3f (diff) |
fixed bug where the config option is not set
-rw-r--r-- | program/include/main.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/program/include/main.inc b/program/include/main.inc index 364bfd50e..2d7cfeaad 100644 --- a/program/include/main.inc +++ b/program/include/main.inc @@ -313,8 +313,10 @@ function load_gui() $javascript = "var $JS_OBJECT_NAME = new rcube_webmail();\n"; $javascript .= "$JS_OBJECT_NAME.set_env('comm_path', '$COMM_PATH');\n"; - foreach ($CONFIG['javascript_config'] as $js_config_var){ - $javascript .= "$JS_OBJECT_NAME.set_env('$js_config_var', '" . $CONFIG[$js_config_var] . "');\n"; + if (isset($CONFIG['javascript_config'] )){ + foreach ($CONFIG['javascript_config'] as $js_config_var){ + $javascript .= "$JS_OBJECT_NAME.set_env('$js_config_var', '" . $CONFIG[$js_config_var] . "');\n"; + } } if (!empty($GLOBALS['_framed'])) |