mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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…
x
Reference in New Issue
Block a user