修复变量haed未初始化的错误

This commit is contained in:
wlx 2014-05-09 03:21:59 +00:00
parent e25ddb60d7
commit b3b5478ccf
1 changed files with 1 additions and 0 deletions

View File

@ -39,6 +39,7 @@ $('#divFooter').css('position','absolute');
{ {
foreach($this->types as $v) foreach($this->types as $v)
{ {
$haed="";
if(!empty($v[$this->deepField])) {$haed = str_repeat('-',$v[$this->deepField]);} if(!empty($v[$this->deepField])) {$haed = str_repeat('-',$v[$this->deepField]);}
if($this->type == $v['id']) if($this->type == $v['id'])
echo '<option value="/admin/news/newslist/type/'.$v['id'].'" selected="selected">' echo '<option value="/admin/news/newslist/type/'.$v['id'].'" selected="selected">'