X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Foptions.php;h=44c2279e13f922d6c060ddae3894d6b7c26842c5;hb=4e1347dfe9a0fc4cffe4c0b64a3a2dafc56fe9ee;hp=808f69cc1eebc65f84bf012079e2009ad2dd4afb;hpb=4081f4867490b349d93192d69128a607cfe5ef94;p=squirrelmail.git diff --git a/src/options.php b/src/options.php index 808f69cc..44c2279e 100644 --- a/src/options.php +++ b/src/options.php @@ -3,16 +3,17 @@ /** * options.php * - * Copyright (c) 1999-2003 The SquirrelMail Project Team + * Copyright (c) 1999-2004 The SquirrelMail Project Team * Licensed under the GNU GPL. For full terms see the file COPYING. * * Displays the options page. Pulls from proper user preference files * and config.php. Displays preferences as selected and other options. * * $Id$ + * @package squirrelmail */ -/* Path for SquirrelMail required files. */ +/** Path for SquirrelMail required files. */ define('SM_PATH','../'); /* SquirrelMail required files. */ @@ -349,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;