fixed bug in visual vars submit handle

This commit is contained in:
Li Jianxuan 2015-01-19 07:45:19 +00:00
parent bc16052e53
commit aa365e0a59
1 changed files with 5 additions and 2 deletions

View File

@ -42,8 +42,11 @@ class VisualHandle extends \Westdc\Visual\VariableEncoder
foreach($data['vars'] as $k=>$v)
{
if(preg_match("/;/",$v['filter']))
$data['vars'][$k]['filter'] = explode(";",$v['filter']);
if(isset($v['filter']))
{
if(preg_match("/;/",$v['filter']))
$data['vars'][$k]['filter'] = explode(";",$v['filter']);
}
}
$data['vars'] = $this->encode($data['vars']);