MINOR: some dbms make a difference between 0 and NULL

This commit is contained in:
Andreas Piening 2010-09-07 02:24:54 +00:00
parent 3c1d81d014
commit 8a80dfa592

View File

@ -821,8 +821,8 @@ class UserDefinedForm_EmailRecipient extends DataObject {
);
if($this->Form()) {
$validEmailFields = DataObject::get("EditableEmailField", "\"ParentID\" = '$this->FormID'");
$multiOptionFields = DataObject::get("EditableMultipleOptionField", "\"ParentID\" = '$this->FormID'");
$validEmailFields = DataObject::get("EditableEmailField", "\"ParentID\" = '" . (int)$this->FormID . "'");
$multiOptionFields = DataObject::get("EditableMultipleOptionField", "\"ParentID\" = '" . (int)$this->FormID . "'");
// if they have email fields then we could send from it
if($validEmailFields) {