Skip to content

Commit

Permalink
Update Connection.php (#16673)
Browse files Browse the repository at this point in the history
issue #15359
fixed in version 5.2
  • Loading branch information
goalzz85 authored and taylorotwell committed Dec 6, 2016
1 parent 66b4237 commit 29f78e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ public function reconnect()
*/
protected function reconnectIfMissingConnection()
{
if (is_null($this->getPdo()) || is_null($this->getReadPdo())) {
if (is_null($this->pdo)) {
$this->reconnect();
}
}
Expand Down

1 comment on commit 29f78e3

@GrahamCampbell
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NB This commit is a backport from 5.3: #16422.

Please sign in to comment.