mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-18 09:52:17 +09:00
array check
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9969 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
0d4d9514ee
commit
3a4021be5c
1 changed files with 20 additions and 15 deletions
|
|
@ -1446,21 +1446,26 @@
|
|||
return $output;
|
||||
}
|
||||
|
||||
function unserializeAttributes($module_filebox_list){
|
||||
foreach($module_filebox_list->data as $item){
|
||||
$attributes = explode(';', $item->comment);
|
||||
foreach($attributes as $attribute){
|
||||
$values = explode(':', $attribute);
|
||||
if((count($values) % 2) ==1) {
|
||||
for($i=2;$i<count($values);$i++){
|
||||
$values[1].=":".$values[$i];
|
||||
}
|
||||
}
|
||||
$atts[$values[0]]=$values[1];
|
||||
}
|
||||
$item->attributes = $atts;
|
||||
unset($atts);
|
||||
}
|
||||
function unserializeAttributes($module_filebox_list)
|
||||
{
|
||||
if(is_array($module_filebox_list))
|
||||
{
|
||||
foreach($module_filebox_list->data as $item)
|
||||
{
|
||||
$attributes = explode(';', $item->comment);
|
||||
foreach($attributes as $attribute){
|
||||
$values = explode(':', $attribute);
|
||||
if((count($values) % 2) ==1) {
|
||||
for($i=2;$i<count($values);$i++){
|
||||
$values[1].=":".$values[$i];
|
||||
}
|
||||
}
|
||||
$atts[$values[0]]=$values[1];
|
||||
}
|
||||
$item->attributes = $atts;
|
||||
unset($atts);
|
||||
}
|
||||
}
|
||||
return $module_filebox_list;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue