Fix a warning.
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 29 Oct 2003 17:22:24 +0000 (17:22 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 29 Oct 2003 17:22:24 +0000 (17:22 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6046 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/options.php

index a999a3ecc9f6ebc08ffbc3af02c7cc056e915a49..1bf50510e3f1128e7f7d54a1e94b1afef7e52a8e 100644 (file)
@@ -350,7 +350,7 @@ if ($optpage == SMOPT_PAGE_MAIN) {
     $js_optpage_blocks = array();
     $reg_optpage_blocks = array();
     foreach ($optpage_blocks as $cur_optpage) {
-        if (!$cur_optpage['js']) {
+        if (!isset($cur_optpage['js']) || !$cur_optpage['js']) {
             $reg_optpage_blocks[] = $cur_optpage;
         } else if ($javascript_on == SMPREF_JS_ON) {
             $js_optpage_blocks[] = $cur_optpage;