Skip to content

Commit

Permalink
Set $init to false in stmt restore
Browse files Browse the repository at this point in the history
  • Loading branch information
bwoebi authored Apr 7, 2017
1 parent 84ad9d5 commit 3eb0c5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Stmt.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ private function conn() {
}
$restore = $this->conn->restore;
if (isset($restore)) {
$restore(true)->prepare($this->query)->when(function($error, $stmt) {
$restore(false)->prepare($this->query)->when(function($error, $stmt) {
if ($error) {
while (list(, $args) = $this->virtualConn->getCall()) {
end($args)->fail($error);
Expand Down Expand Up @@ -183,4 +183,4 @@ public function __debugInfo() {

return (array) $tmp;
}
}
}

0 comments on commit 3eb0c5f

Please sign in to comment.