issue 2091, fixed a bug. Does not display text input on addon xml version < 0.2

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10847 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2012-07-09 01:03:35 +00:00
parent 7f58148ac4
commit 6d1abe0497

View file

@ -274,12 +274,11 @@
foreach($extra_vars as $key => $val) {
unset($obj);
if(!$val->type->body) { $val->type->body = 'text'; }
$obj->group = $group->title->body;
$obj->name = $val->attrs->name;
$obj->title = $val->title->body;
$obj->type = $val->type->body;
$obj->type = $val->type->body ? $val->type->body : 'text';
$obj->description = $val->description->body;
$obj->value = $extra_vals->{$obj->name};
if(strpos($obj->value, '|@|') != false) { $obj->value = explode('|@|', $obj->value); }