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

Update PostgreSqlPlatform.php

fixed parameter order in conditions
parent 402c7c8f
......@@ -716,7 +716,7 @@ class PostgreSqlPlatform extends AbstractPlatform
*/
public function convertFromBoolean($item)
{
if(($item !== null) && ($item !== true) && ($item !== false) && 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;
}
......
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