From: tokul Date: Sat, 5 Nov 2005 13:40:02 +0000 (+0000) Subject: js=off triggers e_notice level error. X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=c6f1c1ac1a7f41ff223a009f15993f9875947903 js=off triggers e_notice level error. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10254 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/addrbook_search_html.php b/src/addrbook_search_html.php index 4361d31f..df965e49 100644 --- a/src/addrbook_search_html.php +++ b/src/addrbook_search_html.php @@ -1,5 +1,4 @@ ' . - "\n\n" . - "\n"; - $chk_all = '' . _("All") . ' '._("To").''. + if ($javascript_on) { + print + '\n"; + $chk_all = ''._("All").' '._("To").''. '  '. '' . _("All") . ' '._("Cc").''. '  '. '' . _("All") . ''; + } else { + // check_all links are used only in JavaScript. disable links in js=off environment. + $chk_all = ''; } echo html_tag( 'table', '', 'center', '', 'border="0" width="98%"' ) . html_tag( 'tr', '', '', $color[9] ) .