diff --git a/cake/libs/model/datasources/dbo/dbo_postgres.php b/cake/libs/model/datasources/dbo/dbo_postgres.php index edd22607f..bbe7d5623 100644 --- a/cake/libs/model/datasources/dbo/dbo_postgres.php +++ b/cake/libs/model/datasources/dbo/dbo_postgres.php @@ -728,14 +728,14 @@ class DboPostgres extends DboSource { case ($data === 'TRUE' || $data === 'FALSE'): $result = ($data === 'TRUE'); default: - $result = (bool)$data; + $result = (bool) $data; break; } if ($quote) { $result = ($result) ? 'TRUE' : 'FALSE'; } - return $result; + return (int) $result; } /**