diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-09-13 17:19:12 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-09-13 17:19:12 +0000 |
commit | 4ec48b9a8136cca9b1f1e28638c8deba93bcf27b (patch) | |
tree | 2c1c6afcbb3e06b8bf0a5d4c63017fc2da4b6978 /usr | |
parent | e3ebf01eba9e39386c1e7d4fdf7ee949c15336fa (diff) | |
download | pfsense-4ec48b9a8136cca9b1f1e28638c8deba93bcf27b.zip pfsense-4ec48b9a8136cca9b1f1e28638c8deba93bcf27b.tar.gz |
Only foreach through arrays
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/guiconfig.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc index 2c79557..08e8538 100755 --- a/usr/local/www/guiconfig.inc +++ b/usr/local/www/guiconfig.inc @@ -498,7 +498,7 @@ function dump_clog($logfile, $tail, $withorig = true, $grepfor = "", $grepinvert $sor = isset($config['syslog']['reverse']) ? "-r" : ""; exec("/usr/sbin/clog {$logfile} | /usr/bin/tail {$sor} -n {$tail}", $logarr); /* handle grep for case */ - if($grepfor <> "") { + if(is_array($grepfor)) { $i = 0; foreach($grepfor as $agrep) { $regexp = "/" . $agrep . "/i"; |