From: Alexandros V. <av...@us...> - 2003-10-31 19:43:26
|
Update of /cvsroot/squirrelmail/squirrelmail/plugins/bug_report In directory sc8-pr-cvs1:/tmp/cvs-serv19028 Modified Files: Tag: SM-1_4-STABLE bug_report.php Log Message: Merge fix from Devel for possible E_ALL error Index: bug_report.php =================================================================== RCS file: /cvsroot/squirrelmail/squirrelmail/plugins/bug_report/bug_report.php,v retrieving revision 1.11.2.1 retrieving revision 1.11.2.2 diff -u -w -r1.11.2.1 -r1.11.2.2 --- bug_report.php 24 Oct 2003 16:57:11 -0000 1.11.2.1 +++ bug_report.php 31 Oct 2003 19:43:22 -0000 1.11.2.2 @@ -36,7 +36,10 @@ return $str; } +$browscap = ini_get('browscap'); +if(!empty($browscap)) { $browser = get_browser(); +} $body_top = "I subscribe to the squirrelmail-users mailing list.\n" . " [ ] True - No need to CC me when replying\n" . " [ ] False - Please CC me when replying\n" . @@ -52,10 +55,12 @@ "(Optional) I got really bored and here's a fix:\n\n\n" . "----------------------------------------------\n" . "\nMy browser information:\n" . - ' '.$_SERVER['HTTP_USER_AGENT'] . "\n" . - " get_browser() information (List)\n" . - Show_Array((array) $browser) . - "\nMy web server information:\n" . + ' '.$_SERVER['HTTP_USER_AGENT'] . "\n" ; + if(isset($browser)) { + $body_top .= " get_browser() information (List)\n" . + Show_Array((array) $browser); + } + $body_top .= "\nMy web server information:\n" . " PHP Version " . phpversion() . "\n" . " PHP Extensions (List)\n" . Show_Array(get_loaded_extensions()) . |