diff options
author | Chris Buechler <cmb@pfsense.org> | 2016-01-22 00:11:35 -0600 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2016-01-22 00:11:35 -0600 |
commit | c40fbe6d09c15c367fd900ff20e88b4dedb6bd4e (patch) | |
tree | 159992e29ca784a9fb45200819b2310770d47528 /src | |
parent | 7ebc7c51cf82f7b0b403f09f7d15f425bf74ebba (diff) | |
parent | 257fc849830aedf52338e84e489ad20e02f14179 (diff) | |
download | pfsense-c40fbe6d09c15c367fd900ff20e88b4dedb6bd4e.zip pfsense-c40fbe6d09c15c367fd900ff20e88b4dedb6bd4e.tar.gz |
Merge pull request #2501 from phil-davis/patch-5
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/crash_reporter.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/crash_reporter.php b/src/usr/local/www/crash_reporter.php index de3cb58..f4db694 100644 --- a/src/usr/local/www/crash_reporter.php +++ b/src/usr/local/www/crash_reporter.php @@ -99,7 +99,7 @@ $crash_report_header .= "\nCrash report details:\n"; exec("/usr/bin/grep -vi warning /tmp/PHP_errors.log", $php_errors); ?> <?php - if (gettext($_POST['Submit']) == "Yes") { + if (gettext($_POST['Submit']) == gettext("Yes")) { echo gettext("Processing..."); if (!is_dir("/var/crash")) { mkdir("/var/crash", 0750, true); @@ -126,7 +126,7 @@ exec("/usr/bin/grep -vi warning /tmp/PHP_errors.log", $php_errors); } else { echo gettext("Could not find any crash files."); } - } else if (gettext($_POST['Submit']) == "No") { + } else if (gettext($_POST['Submit']) == gettext("No")) { array_map('unlink', glob("/var/crash/*")); // Erase the contents of the PHP error log fclose(fopen("/tmp/PHP_errors.log", 'w')); |