]> lifelog.hopto.org Git - LifeLog.git/commitdiff
bool don't default in SQLite, fix.
authorMetabox <redacted>
Tue, 8 Oct 2019 01:53:21 +0000 (12:53 +1100)
committerMetabox <redacted>
Tue, 8 Oct 2019 01:53:21 +0000 (12:53 +1100)
htdocs/cgi-bin/main.cgi

index 19c8f5336d2ef4c5da6869073f27564f50191101..717cffa6ab97d09ede52a95076358212c78de1ae 100755 (executable)
@@ -873,8 +873,9 @@ return $today;
         my $rtf    = $cgi->param('rtf');
         my $sticky = $cgi->param('sticky');
 
-        $rtf = 1 if $rtf eq 'on';
-        $sticky = 1 if $sticky eq 'on';
+
+        if($rtf eq 'on'){$rtf = 1}  else {$rtf = 0}
+        if($sticky eq 'on'){$sticky = 1} else {$sticky = 0}
 
         try {
 #Apostroph's need to be replaced with doubles  and white space to be fixed for the SQL.