Skip to content

Commit

Permalink
Merge pull request #7 from JustZyx/master
Browse files Browse the repository at this point in the history
fix mysqli_sql_exception::$getCode
  • Loading branch information
xtgxiso authored Feb 10, 2017
2 parents 1c755cd + 92d2e85 commit 3818ebe
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 3818ebe

Please sign in to comment.