mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
PHP 5.4 reduce error of Create default object.
This commit is contained in:
parent
38b3fd2ce5
commit
eec20ea827
8 changed files with 22 additions and 4 deletions
|
|
@ -221,6 +221,7 @@ class editorController extends editor
|
|||
$xml_obj->attrs = new stdClass;
|
||||
for($i=0,$c=count($m[0]);$i<$c;$i++)
|
||||
{
|
||||
if(!isset($xml_obj->attrs)) $xml_obj->attrs = new stdClass;
|
||||
$xml_obj->attrs->{$m[1][$i]} = $m[2][$i];
|
||||
}
|
||||
$xml_obj->body = $match[4];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue