fixed boolean conversion
This commit is contained in:
parent
b60f68d58e
commit
71c52205ad
1 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue