From: wbudic Date: Sat, 13 Feb 2021 23:06:18 +0000 (+1100) Subject: status display fixed. X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=948db1e5ddb247c99d225929118839039d55e840;p=LifeLog.git status display fixed. --- diff --git a/htdocs/cgi-bin/config.cgi b/htdocs/cgi-bin/config.cgi index b27974c..c9680a1 100755 --- a/htdocs/cgi-bin/config.cgi +++ b/htdocs/cgi-bin/config.cgi @@ -25,7 +25,7 @@ require Settings; #15mg data post limit $CGI::POST_MAX = 1024 * 15000; -my ($TR_STATUS,$LOGOUT,$ERROR) = ("",0,""); +my ($RDS,$TR_STATUS,$LOGOUT,$ERROR) = ("","",0,""); my $sys = `uname -n`; my $db = Settings::fetchDBSettings(); my $cgi = Settings->cgi(); @@ -51,7 +51,7 @@ elsif($cgi->param('data_log')){&importLogCSV} my $stmtCat = 'SELECT * FROM CAT ORDER BY ID;'; -my $status = "Ready for change!"; +my $status = $RDS = "Ready for change!"; my $cats; my %hshCats = {}; cats(); @@ -604,8 +604,7 @@ if($passch){ syslog('info', 'Status:%s', $status); syslog('info', 'Password change request for %s', $alias); closelog(); - $TR_STATUS = qq($status); - + $TR_STATUS = qq($status) if $status !~ m/$RDS/; } elsif ($change == 1){ @@ -645,7 +644,7 @@ elsif ($change == 1){ } } } - $status = "Updated Categories!"; + $status = "Updated Categories!";$TR_STATUS = qq($status); } @@ -761,7 +760,7 @@ elsif($chdbfix){ else{processDBFix()} $status = "Performed Database Fixes!"; } - +$TR_STATUS = qq(Status -> $status)if $status !~ m/$RDS/; } catch{