code optimization

For phpwcms --> v1.7.2+
No PHP Notice: Undefined variable or Undefined index anymore.