Skip to content

Commit

Permalink
Fix setting redirectParams variable (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
joeke committed May 1, 2018
1 parent f1f5dd1 commit 2ff8829
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/components/formit/src/FormIt/Hook/Redirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ public function process($fields = [])
if (empty($this->formit->config['redirectTo'])) {
return false;
}
$redirectParams = !empty($this->formit->config['redirectParams']) ?: '';
$redirectParams = !empty($this->formit->config['redirectParams'])
? $this->formit->config['redirectParams']
: '';
if (!empty($redirectParams)) {
$prefix = $this->modx->getOption('placeholderPrefix', $this->formit->config, 'fi.');
$this->modx->setPlaceholders($fields, $prefix);
Expand Down

0 comments on commit 2ff8829

Please sign in to comment.