From: Magnus Kühn Date: Sat, 29 Dec 2012 10:27:09 +0000 (+0100) Subject: TYPE_BOOL now works on "false" and "true" X-Git-Tag: 2.0.0_Beta_1~658^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6c611ea76153f71e182e01d501347b655b00bc18;p=GitHub%2FWoltLab%2FWCF.git TYPE_BOOL now works on "false" and "true" --- 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; }