Skip to content

Commit

Permalink
bugfix: check that we really have some value to convert in widgetToVa…
Browse files Browse the repository at this point in the history
…lue() - return empty array otherwise.
  • Loading branch information
discordier committed Apr 10, 2013
1 parent 474186a commit 08a2e9c
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -113,7 +113,10 @@ public function valueToWidget($varValue)
*/
public function widgetToValue($varValue, $intId)
{
if (!is_array($varValue)) return array();
if ((!is_array($varValue)) || empty($varValue))
{
return array();
}

$arrSearch = array();
$arrParams = array();
Expand Down

0 comments on commit 08a2e9c

Please sign in to comment.