Merge pull request #2515 from Jennydmz/master

Fixing Notice in fields handler by an empty variable usage.
This commit is contained in:
julceslauhub
2014-07-23 17:07:11 -04:00

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) {