Skip to content

Commit

Permalink
Fixing undefined variable warnings from copyToFromRaw(), which have been
Browse files Browse the repository at this point in the history
piling up in error logs (not displayed because of being during submit
phase).
  • Loading branch information
cheesegrits committed Apr 30, 2015
1 parent c9f24c7 commit 1a0321a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/com_fabrik/models/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -2139,17 +2139,17 @@ protected function copyToFromRaw(&$post, $direction = 'toraw', $override = false
if (!array_key_exists($elName2Raw, $post) || $override)
{
// Post required getValue() later on
$input->set($elName2Raw, @$post[$elName2]);
$post[$elName2Raw] = @$post[$elName2];
$input->set($elName2Raw, FArrayHelper::getValue($post, $elName2, ''));
$post[$elName2Raw] = FArrayHelper::getValue($post, $elName2, '');
}
}
else
{
if (!array_key_exists($elName2 . '_raw', $post) || $override)
{
// Post required getValue() later on
$input->set($elName2, @$post[$elName2Raw]);
$post[$elName2] = @$post[$elName2Raw];
$input->set($elName2, FArrayHelper::getValue($post, $elName2Raw, ''));
$post[$elName2] = FArrayHelper::getValue($post, $elName2Raw, '');
}
}
}
Expand Down

0 comments on commit 1a0321a

Please sign in to comment.