Skip to content

Commit

Permalink
fix mysqli_sql_exception::$getCode
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Feb 10, 2017
1 parent 1c755cd commit 92d2e85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libs/Mmysqli.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function query( $query,$resultmode=MYSQLI_STORE_RESULT ){
try {
return parent::query($query,$resultmode);
} catch (\mysqli_sql_exception $e) {
if ($e->getCode() == 2006 || $e->getCode == 2013) {
if ($e->getCode() == 2006 || $e->getCode() == 2013) {
$this->close();
$this->connect_db();
return parent::query($query,$resultmode);
Expand Down

0 comments on commit 92d2e85

Please sign in to comment.