emlog更换模板是出现错误warning: Invalid argument supplied for foreach()
修正方法如下:
foreach($comments as $key=>$value):修改成
foreach((array)$comments as $key=>$value):
原因:foreach是数组,不能为空,所以要加(array)
---
转载请注明本文标题和链接:《emlog更换模板是出现错误warning: Invalid argument supplied for foreach()》
发表评论