emlog更换模板是出现错误warning: Invalid argument supplied for foreach()

emlog更换模板是出现错误warning: Invalid argument supplied for foreach()
修正方法如下:
foreach($comments as $key=>$value):修改成
foreach((array)$comments as $key=>$value):

原因:foreach是数组,不能为空,所以要加(array)

  
  最后修订:2012-10-29

0条评论