模板中默认值输出bug

浏览:4548 发布日期:2013/12/26 分类:求助交流
{$vo.c_crafts|getCraftsById|default="未知"}
解析为:echo ((isset(getcraftsbyid($vo["c_crafts"])) && (getcraftsbyid($vo["c_crafts"]) !== ""))?(getcraftsbyid($vo["c_crafts"])):"未知");

提示:Cannot use isset() on the result of a function call (you can use "null !== func()" instead)

php版本:5.5.5
最佳答案
评论( 相关
后面还有条评论,点击查看>>