mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-04-21 22:29:17 -04:00
BoolCast: Don't cast string values in toDb()
This commit is contained in:
parent
d97847dee7
commit
ceec8ab017
1 changed files with 4 additions and 0 deletions
|
|
@ -13,6 +13,10 @@ class BoolCast extends PropertyBehavior
|
|||
|
||||
public function toDb($value, $_)
|
||||
{
|
||||
if (is_string($value)) {
|
||||
return $value;
|
||||
}
|
||||
|
||||
return $value ? 'y' : 'n';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue