Skip to content

Commit

Permalink
Fixes comment checkbox handling
Browse files Browse the repository at this point in the history
  • Loading branch information
donatj committed May 2, 2019
1 parent cef3314 commit 0bffef0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
http://www.test3.com/faq.html?faq=13&layout=bob bbq.html
text/faq.html?faq=20 helpdesk/kb.php
EOD;
$paramComments = (bool)($_POST['desc_comments'] ?? true);
$paramComments = (bool)($_POST ? ($_POST['desc_comments'] ?? false) : true);
$paramType = $_POST['type'] ?? RewriteTypes::PERMANENT_REDIRECT;

$generator = new ApacheModRewriteGenerator;

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

?>
<!DOCTYPE html>
Expand Down

0 comments on commit 0bffef0

Please sign in to comment.