Commit 092cc8ad authored by Benjamin Eberlei's avatar Benjamin Eberlei

Merge pull request #141 from hason/master

Fixed conditional expression
parents 5041f5f0 75d5fab7
...@@ -37,7 +37,7 @@ class PDOStatement extends \PDOStatement implements Statement ...@@ -37,7 +37,7 @@ class PDOStatement extends \PDOStatement implements Statement
// of PDOStatement::setFetchMode(): even if the second and third // of PDOStatement::setFetchMode(): even if the second and third
// parameters are optional, PHP will not let us remove it from this // parameters are optional, PHP will not let us remove it from this
// declaration. // declaration.
if ($arg2 === null || $arg3 === null) { if ($arg2 === null && $arg3 === null) {
return parent::setFetchMode($fetchStyle); return parent::setFetchMode($fetchStyle);
} }
......
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