Skip to content

Commit 0bffef0

Browse files
committed
Fixes comment checkbox handling
1 parent cef3314 commit 0bffef0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
http://www.test3.com/faq.html?faq=13&layout=bob bbq.html
3333
text/faq.html?faq=20 helpdesk/kb.php
3434
EOD;
35-
$paramComments = (bool)($_POST['desc_comments'] ?? true);
35+
$paramComments = (bool)($_POST ? ($_POST['desc_comments'] ?? false) : true);
3636
$paramType = $_POST['type'] ?? RewriteTypes::PERMANENT_REDIRECT;
3737

3838
$generator = new ApacheModRewriteGenerator;
3939

4040
$engine = new Engine($generator);
41-
$output = $engine->generate($paramRewrites, $paramType, isset($paramComments));
41+
$output = $engine->generate($paramRewrites, $paramType, $paramComments);
4242

4343
?>
4444
<!DOCTYPE html>

0 commit comments

Comments
 (0)