Fix insertion of simplehtml, html, and nl2br data types

develop
Sven Slootweg 11 years ago
parent 2680c4538c
commit bfadf150b4

@ -395,6 +395,9 @@ abstract class CPHPDatabaseRecordClass extends CPHPBaseClass
case "boolean": case "boolean":
case "timestamp": case "timestamp":
case "string": case "string":
case "simplehtml":
case "html":
case "nl2br":
$element_list[$element_value] = array( $element_list[$element_value] = array(
'key' => $element_key, 'key' => $element_key,
'type' => $type_key 'type' => $type_key
@ -448,6 +451,9 @@ abstract class CPHPDatabaseRecordClass extends CPHPBaseClass
} }
break; break;
case "string": case "string":
case "simplehtml":
case "html":
case "nl2br":
$uFinalValue = (isset($this->$variable_name_unsafe)) ? $this->$variable_name_unsafe : $this->$variable_name_safe; $uFinalValue = (isset($this->$variable_name_unsafe)) ? $this->$variable_name_unsafe : $this->$variable_name_safe;
break; break;
case "default": case "default":

Loading…
Cancel
Save