mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-16 08:53:54 +09:00
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:
parent
0fc5cd6c71
commit
2d285e60d1
3 changed files with 8 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue