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