Skip to content

Commit

Permalink
Fixing bug in boolean conversion for postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Oct 26, 2010
1 parent 49ed8ed commit a6b6720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/libs/model/datasources/dbo/dbo_postgres.php
Expand Up @@ -741,7 +741,7 @@ function boolean($data, $quote = true) {
}

if ($quote) {
$result = ($result) ? 'TRUE' : 'FALSE';
return ($result) ? 'TRUE' : 'FALSE';
}
return (int) $result;
}
Expand Down

0 comments on commit a6b6720

Please sign in to comment.