Commit 7b161fa9 authored by František Bereň's avatar František Bereň Committed by lucasvanlierop

Update PostgreSqlPlatform.php

parent d901ba24
...@@ -716,12 +716,14 @@ class PostgreSqlPlatform extends AbstractPlatform ...@@ -716,12 +716,14 @@ class PostgreSqlPlatform extends AbstractPlatform
*/ */
public function convertFromBoolean($item) public function convertFromBoolean($item)
{ {
if((null !== $item) && (false !== $item) && (true !== $item) && in_array((string)$item, array('false', 'f', 'n', 'no', 'off'))) if(
{ (null !== $item) &&
(false !== $item) &&
(true !== $item) &&
in_array((string)$item, array('false', 'f', 'n', 'no', 'off'))
) {
return false; return false;
} } else {
else
{
return parent::convertFromBoolean($item); return parent::convertFromBoolean($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