Skip to content

Commit

Permalink
Merge branch 'joomla3' of github.com:Fabrik/fabrik into joomla3
Browse files Browse the repository at this point in the history
  • Loading branch information
pollen8 committed Oct 31, 2014
2 parents e9d8a30 + 6d2fe1c commit ee9a3ec
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions plugins/fabrik_form/redirect/redirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,16 @@ protected function _appendQS(&$queryvars, $key, $val, $appendEmpty = true)
{
if (is_array($val))
{
foreach ($val as $v)
if (count($val) === 1)
{
$this->_appendQS($queryvars, "{$key}[value]", $v, $appendEmpty);
$this->_appendQS($queryvars, $key, $val[0], $appendEmpty);
}
else
{
foreach ($val as $v)
{
$this->_appendQS($queryvars, "{$key}[value]", $v, $appendEmpty);
}
}
}
else
Expand Down

0 comments on commit ee9a3ec

Please sign in to comment.