issue 2003 fix checkbox value (string to array)

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10835 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2012-07-05 05:49:57 +00:00
parent 0fc5cd6c71
commit 2d285e60d1
3 changed files with 8 additions and 5 deletions

View file

@ -396,9 +396,12 @@
} else {
$group_srls = Context::get($grant_name);
if($group_srls) {
if(strpos($group_srls,'|@|')!==false) $group_srls = explode('|@|',$group_srls);
elseif(strpos($group_srls,',')!==false) $group_srls = explode(',',$group_srls);
else $group_srls = array($group_srls);
if(!is_array($group_srls))
{
if(strpos($group_srls,'|@|')!==false) $group_srls = explode('|@|',$group_srls);
elseif(strpos($group_srls,',')!==false) $group_srls = explode(',',$group_srls);
else $group_srls = array($group_srls);
}
$grant->{$grant_name} = $group_srls;
}
continue;