However, this warning message is new to PHP 5.4. Old versions didn't warn if this happened. They would silently convert 'type' to 0, then try to get character 0 (the first character) of the string. So if this code was supposed to work, that's because abusing a string like this didn't cause any complaints on PHP 5.3 and below. (A lot of old PHP code has experienced this problem after upgrading.)
You are assigning the enabled property a value of true, however the next line is trying to treat that property as an object (it's not, it's a boolean value). If you really need to have a value and type for the enabled property, try this instead:
Welvome EQ中文世纪地图集论坛 (http://www.ceqmap.com/bbs/) | Powered by Discuz! 7.0.0 |