Merge pull request #3174 from camspiers/patch-1

Remove redundant ternary expression
This commit is contained in:
Damian Mooyman 2014-05-30 17:28:53 +12:00
commit 89333d575d

View File

@ -277,7 +277,7 @@ each class that it is extended by.
class CustomerWorkflow extends DataExtension {
public function IsMarkedForDeletion() {
return ($this->owner->Account()->IsMarkedForDeletion == 1) ? true : false;
return (bool) $this->owner->Account()->IsMarkedForDeletion;
}
}