From 71c52205ad997d6e758733f46d6eb51a93bf83ba Mon Sep 17 00:00:00 2001 From: zYne Date: Sat, 19 May 2007 22:40:09 +0000 Subject: [PATCH] fixed boolean conversion --- lib/Doctrine/Connection/Pgsql.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/Connection/Pgsql.php b/lib/Doctrine/Connection/Pgsql.php index bc8fe291e..a686ba944 100644 --- a/lib/Doctrine/Connection/Pgsql.php +++ b/lib/Doctrine/Connection/Pgsql.php @@ -103,10 +103,14 @@ class Doctrine_Connection_Pgsql extends Doctrine_Connection_Common { if (is_array($item)) { foreach ($item as $key => $value) { - $item[$key] = ($value) ? 'true' : 'false'; + if (is_bool($value)) { + $item[$key] = ($value) ? 'true' : 'false'; + } } } else { - $item = ($item) ? 'true' : 'false'; + if (is_bool($item)) { + $item = ($item) ? 'true' : 'false'; + } } return $item; }