1
0
mirror of synced 2024-12-14 23:26:04 +03:00

fixed boolean conversion

This commit is contained in:
zYne 2007-05-19 22:40:09 +00:00
parent b60f68d58e
commit 71c52205ad

View File

@ -103,10 +103,14 @@ class Doctrine_Connection_Pgsql extends Doctrine_Connection_Common
{ {
if (is_array($item)) { if (is_array($item)) {
foreach ($item as $key => $value) { foreach ($item as $key => $value) {
$item[$key] = ($value) ? 'true' : 'false'; if (is_bool($value)) {
$item[$key] = ($value) ? 'true' : 'false';
}
} }
} else { } else {
$item = ($item) ? 'true' : 'false'; if (is_bool($item)) {
$item = ($item) ? 'true' : 'false';
}
} }
return $item; return $item;
} }