diff options
author | jim-p <jimp@pfsense.org> | 2011-02-07 10:28:49 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-02-07 10:28:49 -0500 |
commit | 4cd81611485724e8a071c5e34f132a4ec22d4548 (patch) | |
tree | f74a6dab5d46fca221d3c8d39a6d08697bfa38df | |
parent | 104faa07f7dc51f4ef66e323299881c2ffbec0f6 (diff) | |
download | pfsense-4cd81611485724e8a071c5e34f132a4ec22d4548.zip pfsense-4cd81611485724e8a071c5e34f132a4ec22d4548.tar.gz |
Fix check to ignore minfree (and the rest of $skip_files)
-rwxr-xr-x | usr/local/www/index.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr/local/www/index.php b/usr/local/www/index.php index 980c87e..43520ba 100755 --- a/usr/local/www/index.php +++ b/usr/local/www/index.php @@ -62,10 +62,8 @@ $x = 0; $skip_files = array(".", "..", "minfree", ""); if(is_array($crash)) { foreach($crash as $c) { - foreach($skip_files as $sf) - if($sf == $c) - continue; - $x++; + if (!in_array(basename($c), $skip_files)) + $x++; } if($x > 0) $savemsg = "{$g['product_name']} has detected a crash report. Click <a href='crash_reporter.php'>here</a> for more information."; |