diff options
author | jim-p <jimp@pfsense.org> | 2011-11-23 10:18:29 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-11-23 10:23:36 -0500 |
commit | dc43ff1eaa74ddbdc8fbdf4b088cbd487631e8c7 (patch) | |
tree | de84c4a5eecb34cb10c43ec99a35024864268314 /usr/local/www/index.php | |
parent | 96f9e3fab1277ef03c1e4190d76b2c72666bd9c2 (diff) | |
download | pfsense-dc43ff1eaa74ddbdc8fbdf4b088cbd487631e8c7.zip pfsense-dc43ff1eaa74ddbdc8fbdf4b088cbd487631e8c7.tar.gz |
Show the PHP errors reported on the index page in the crash report so users are not confused by an empty report screen. Include them in the report and also clear them after sending.
Diffstat (limited to 'usr/local/www/index.php')
-rwxr-xr-x | usr/local/www/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/index.php b/usr/local/www/index.php index a2d8733..a59a652 100755 --- a/usr/local/www/index.php +++ b/usr/local/www/index.php @@ -60,7 +60,7 @@ if($g['disablecrashreporter'] != true) { // Check to see if we have a crash report $x = 0; if(file_exists("/tmp/PHP_errors.log")) { - $total = `/bin/cat /tmp/PHP_errors.log | /usr/bin/grep -vi warning | wc -l | awk '{ print $1 }'`; + $total = `/usr/bin/grep -vi warning /tmp/PHP_errors.log | /usr/bin/wc -l | /usr/bin/awk '{ print $1 }'`; if($total > 0) $x++; } |