Commit 835d65d7 authored by Fabio B. Silva's avatar Fabio B. Silva Committed by Benjamin Eberlei

change default value to 0

parent 56e6c00e
...@@ -206,9 +206,9 @@ class Statement implements \IteratorAggregate, DriverStatement ...@@ -206,9 +206,9 @@ class Statement implements \IteratorAggregate, DriverStatement
* @param mixed $fetchArgument * @param mixed $fetchArgument
* @return array An array containing all of the remaining rows in the result set. * @return array An array containing all of the remaining rows in the result set.
*/ */
public function fetchAll($fetchStyle = PDO::FETCH_BOTH, $fetchArgument = null) public function fetchAll($fetchStyle = PDO::FETCH_BOTH, $fetchArgument = 0)
{ {
if ($fetchArgument !== null) { if ($fetchArgument !== 0) {
return $this->stmt->fetchAll($fetchStyle, $fetchArgument); return $this->stmt->fetchAll($fetchStyle, $fetchArgument);
} }
return $this->stmt->fetchAll($fetchStyle); return $this->stmt->fetchAll($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