From 6c611ea76153f71e182e01d501347b655b00bc18 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Magnus=20K=C3=BChn?= Date: Sat, 29 Dec 2012 11:27:09 +0100 Subject: [PATCH] TYPE_BOOL now works on "false" and "true" --- .../files/lib/data/AbstractDatabaseObjectAction.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php b/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php index a2b398a285..200af0fc15 100644 --- a/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php +++ b/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php @@ -465,7 +465,11 @@ abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction, ID } } else { - $target[$variableName] = (bool) $target[$variableName]; + if (is_string($target[$variableName])) { + $target[$variableName] = $target[$variableName] != 'false'; + } else { + $target[$variableName] = (bool) $target[$variableName]; + } } break; } -- 2.20.1