diff --git a/home/index.php b/home/index.php index 4ceb527ba4..9f728cfc52 100755 --- a/home/index.php +++ b/home/index.php @@ -77,7 +77,7 @@ $GLOBALS['egw']->translation->add_app('mainscreen'); if (lang('mainscreen_message') != 'mainscreen_message*') { - echo '
' . stripslashes(lang('mainscreen_message')) . "
\n"; + echo '
' . lang('mainscreen_message') . "
\n"; } /* @@ -215,25 +215,16 @@ } $varnames = $portal_oldvarnames; $varnames[] = 'homepage_display'; - $thisd = 0; foreach($varnames as $varcheck) { //echo "$appname:$varcheck=".$GLOBALS['egw_info']['user']['preferences'][$appname][$varcheck]."
"; - if($GLOBALS['egw_info']['user']['preferences'][$appname][$varcheck]=='True') + $thisd = (int)$GLOBALS['egw_info']['user']['preferences'][$appname][$varcheck]; + if (!$thisd && $GLOBALS['egw_info']['user']['preferences'][$appname][$varcheck]) $thisd = 1; + if($thisd>0) { - $thisd = 1; + //echo "Found $appname=$_thisd through $varcheck
"; break; } - else - { - $_thisd = (int)$GLOBALS['egw_info']['user']['preferences'][$appname][$varcheck]; - if($_thisd>0) - { - //echo "Found $appname=$_thisd through $varcheck
"; - $thisd = $_thisd; - break; - } - } } //echo "$appname: $thisd
"; if($thisd>0)