]> lifelog.hopto.org Git - LifeLog.git/commitdiff
Fix. System Log category was also System.
authorWill Budic <redacted>
Thu, 20 Feb 2020 07:39:38 +0000 (18:39 +1100)
committerWill Budic <redacted>
Thu, 20 Feb 2020 07:39:38 +0000 (18:39 +1100)
htdocs/cgi-bin/system/modules/Settings.pm

index 6f822677946cd7b6603d57a8bc4dcf19fc018831..20dbe2f613eb7c4625360c5b4874d53b091d66bc 100644 (file)
@@ -246,7 +246,7 @@ sub toLog {
     my ($db,$log,$cat) = @_;
     my $stamp = getCurrentSQLTimeStamp();
         if(!$cat){
-            my @arr = selectRecords($db,"SELECT ID FROM CAT WHERE NAME LIKE 'System';")->fetchrow_array();
+            my @arr = selectRecords($db,"SELECT ID FROM CAT WHERE NAME LIKE 'System Log' or NAME LIKE 'System';")->fetchrow_array();
             if(@arr){
                 $cat = $arr[0];
             }