mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Explicit cast return of DBField->exists()
This commit is contained in:
parent
646a57c324
commit
d9fa6bd143
@ -144,7 +144,7 @@ abstract class DBField extends ViewableData {
|
|||||||
* @return boolean
|
* @return boolean
|
||||||
*/
|
*/
|
||||||
public function exists() {
|
public function exists() {
|
||||||
return ($this->value);
|
return (bool)$this->value;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user