Chr*_*udd 4 php string initialization offset
我在OpenCart日志中收到此错误.说错误在第1行,即:
<?php if(isset($social_discount['name']) && $social_discount['name']!="") { ?>
Run Code Online (Sandbox Code Playgroud)
非常感谢任何帮助来解决这个问题.
要防止出现此错误,您应该更改以下代码:
<?php if(is_array($social_discount) && isset($social_discount['name']) && $social_discount['name']!="") { ?>
Run Code Online (Sandbox Code Playgroud)