PHP 5.4 reduce error of Create default object.

This commit is contained in:
BJRambo 2014-06-22 22:10:44 +09:00
parent 38b3fd2ce5
commit eec20ea827
8 changed files with 22 additions and 4 deletions

View file

@ -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];