mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
issue 2186, added protection codes prevent access empty property
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.1@10959 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3f8aed1b8b
commit
cd4650b6d8
1 changed files with 8 additions and 2 deletions
|
|
@ -187,7 +187,10 @@
|
|||
$obj->title = $val->title->body;
|
||||
$obj->type = $val->attrs->type;
|
||||
$obj->description = $val->description->body;
|
||||
$obj->value = $extra_vals->{$obj->name};
|
||||
if($obj->name)
|
||||
{
|
||||
$obj->value = $extra_vals->{$obj->name};
|
||||
}
|
||||
if(strpos($obj->value, '|@|') != false) { $obj->value = explode('|@|', $obj->value); }
|
||||
if($obj->type == 'mid_list' && !is_array($obj->value)) { $obj->value = array($obj->value); }
|
||||
|
||||
|
|
@ -280,7 +283,10 @@
|
|||
$obj->title = $val->title->body;
|
||||
$obj->type = $val->type->body ? $val->type->body : 'text';
|
||||
$obj->description = $val->description->body;
|
||||
$obj->value = $extra_vals->{$obj->name};
|
||||
if($obj->name)
|
||||
{
|
||||
$obj->value = $extra_vals->{$obj->name};
|
||||
}
|
||||
if(strpos($obj->value, '|@|') != false) { $obj->value = explode('|@|', $obj->value); }
|
||||
if($obj->type == 'mid_list' && !is_array($obj->value)) { $obj->value = array($obj->value); }
|
||||
// 'Select'type obtained from the option list.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue