summaryrefslogtreecommitdiffstats
path: root/usr/local/www/index.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-11-23 10:18:29 -0500
committerjim-p <jimp@pfsense.org>2011-11-23 10:23:36 -0500
commitdc43ff1eaa74ddbdc8fbdf4b088cbd487631e8c7 (patch)
treede84c4a5eecb34cb10c43ec99a35024864268314 /usr/local/www/index.php
parent96f9e3fab1277ef03c1e4190d76b2c72666bd9c2 (diff)
downloadpfsense-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-xusr/local/www/index.php2
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++;
}
OpenPOWER on IntegriCloud