From 10312db4ebdbfc45a787e374d148bab0f0bed139 Mon Sep 17 00:00:00 2001 From: zYne Date: Sat, 19 May 2007 22:40:46 +0000 Subject: [PATCH] fixed boolean conversion --- lib/Doctrine/Connection.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine/Connection.php b/lib/Doctrine/Connection.php index 9ae939e9f..4f043a81d 100644 --- a/lib/Doctrine/Connection.php +++ b/lib/Doctrine/Connection.php @@ -228,7 +228,9 @@ abstract class Doctrine_Connection extends Doctrine_Configurable implements Coun } } } else { - $item = (int) $item; + if (is_bool($item)) { + $item = (int) $item; + } } return $item; }