Merge pull request #3609 from pedro2555/1494-DBField-exists-returns-value

Explicit cast return of DBField->exists()
This commit is contained in:
Sam Minnée 2014-11-12 13:41:49 +13:00
commit b15b93630c
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ abstract class DBField extends ViewableData {
* @return boolean
*/
public function exists() {
return ($this->value);
return (bool)$this->value;
}
/**