Merge pull request #3609 from pedro2555/1494-DBField-exists-returns-value
Explicit cast return of DBField->exists()
This commit is contained in:
commit
b15b93630c
|
@ -144,7 +144,7 @@ abstract class DBField extends ViewableData {
|
|||
* @return boolean
|
||||
*/
|
||||
public function exists() {
|
||||
return ($this->value);
|
||||
return (bool)$this->value;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue