在ecmall2.2.1中template.php的select(string)函數中
有以下代碼:
case 'res':
$t = $this->get_para(substr($tag, 4), 0);
return '<?php echo $this->res_base . "/" . ' . "'$t[file]'" . '; ?>';
break;
$t[file]這裏會有下面的錯誤提示
Notice: Use of undefined constant file - assumed 'file'
意思是,運用了未定義的常量file——系統把它假設爲'file'