Fixing Notice in fields handler by an empty variable usage.

This commit is contained in:
jennylee
2014-07-23 12:52:51 -04:00
parent 8c7a49b22c
commit afba4f5fc6

View File

@@ -320,7 +320,7 @@ class XmlForm_Field
return 1; return 1;
} }
if($this->renderMode == "view" && ($this->type == "text" || $this->type == "currency" || $this->type == "percentage" || $this->type == "textarea" || $this->type == "hidden" || $this->type == "suggest")){ if(isset($this->renderMode) && $this->renderMode == "view" && ($this->type == "text" || $this->type == "currency" || $this->type == "percentage" || $this->type == "textarea" || $this->type == "hidden" || $this->type == "suggest")){
return 1; return 1;
} }