网站出问题了,请指教,谢谢

网站出问题了,请指教,谢谢

Parse error: syntax error, unexpected T_ENDFOREACH in /www/users/hdjpw.com/temp/compiled/help.lbi.php on line 18
---------------------------------------------------------------------------------------
<?php if ($this->_var['helps']): ?>
<div id="help">
<?php $_from = $this->_var['helps']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'help_cat');if (count($_from)):
    foreach ($_from AS $this->_var['help_cat']):
?>
  <dl>
    <dt><?php echo $this->_var['help_cat']['cat_name']; ?></dt>
    <?php $_from = $this->_var['help_cat']['article']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['item']):
?>
    <dd>路<a href="<?php echo $this->_var['item']['url']; ?>" title="<?php echo htmlspecialchars($this->_var['item']['title']); ?>"><?php echo $this->_var['item']['short_title']; ?></a></dd>
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  </dl>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</div>
<?php endif; ?>; ?>
  </dl>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</div>
<?php endif; ?>

程序只有两个foreach和3个if。却有很多 endforeach 和 endif
自己检查下吧。
如履薄冰