Commit 402c7c8f authored by František Bereň's avatar František Bereň Committed by lucasvanlierop

Update PostgreSqlPlatform.php

Changes after Ocramius comments
parent 4dfc8f1f
......@@ -712,11 +712,11 @@ class PostgreSqlPlatform extends AbstractPlatform
}
/**
* {@inheritDoc}
*/
* {@inheritDoc}
*/
public function convertFromBoolean($item)
{
if(in_array((string)$item, array('false', 'f', 'n', 'no', 'off')))
if(($item !== null) && ($item !== true) && ($item !== false) && in_array((string)$item, array('false', 'f', 'n', 'no', 'off')))
{
return false;
}
......
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