From 2a13242775b176050a4dcc8c4789c85bb1b8ba8d Mon Sep 17 00:00:00 2001 From: Metabox Date: Tue, 8 Oct 2019 12:53:21 +1100 Subject: [PATCH] bool don't default in SQLite, fix. --- htdocs/cgi-bin/main.cgi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/cgi-bin/main.cgi b/htdocs/cgi-bin/main.cgi index 19c8f53..717cffa 100755 --- a/htdocs/cgi-bin/main.cgi +++ b/htdocs/cgi-bin/main.cgi @@ -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. -- 2.34.1