From: Chuck Hagenbuch Date: Sun, 13 Dec 2009 20:35:49 +0000 (-0500) Subject: Need to catch 't' and 'f' (with quotes) as boolean values X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=4f859aec89b285abb4d0b97cbb8658829ccfd1c7;p=horde.git Need to catch 't' and 'f' (with quotes) as boolean values --- diff --git a/framework/Db/lib/Horde/Db/Adapter/Sqlite/Column.php b/framework/Db/lib/Horde/Db/Adapter/Sqlite/Column.php index e74fe6d8b..aa4dd445e 100644 --- a/framework/Db/lib/Horde/Db/Adapter/Sqlite/Column.php +++ b/framework/Db/lib/Horde/Db/Adapter/Sqlite/Column.php @@ -53,6 +53,19 @@ class Horde_Db_Adapter_Sqlite_Column extends Horde_Db_Adapter_Base_Column return str_replace(array('%00', '%25'), array("\0", '%'), $value); } + /** + * @param mixed $value + * @return boolean + */ + public function valueToBoolean($value) + { + if ($value == '"t"' || $value == "'t'") { + return true; + } else { + return parent::valueToBoolean($value); + } + } + /*########################################################################## # Protected