Commit 71c52205 authored by zYne's avatar zYne

fixed boolean conversion

parent b60f68d5
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment