summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/usr/local/www/guiconfig.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/guiconfig.inc b/src/usr/local/www/guiconfig.inc
index e796fee..d9d3def 100644
--- a/src/usr/local/www/guiconfig.inc
+++ b/src/usr/local/www/guiconfig.inc
@@ -710,8 +710,8 @@ function return_clog($logfile, $tail, $withorig = true, $grepfor = "", $grepinve
global $g, $config;
$sor = (isset($config['syslog']['reverse']) || $grepreverse) ? "-r" : "";
$specific_log = basename($logfile, '.log') . '_settings';
- if ($config['syslog'][$specific_log]['cronorder'] == 'forward') $sor = "";
- if ($config['syslog'][$specific_log]['cronorder'] == 'reverse') $sor = "-r";
+ if (($config['syslog'][$specific_log]['cronorder'] == 'forward') && !$grepreverse) $sor = "";
+ if (($config['syslog'][$specific_log]['cronorder'] == 'reverse') || $grepreverse) $sor = "-r";
$logarr = "";
$grepline = " ";
if (is_array($grepfor)) {
OpenPOWER on IntegriCloud