diff --git a/Libs/Mmysqli.php b/Libs/Mmysqli.php index f972d2f..ca2d73c 100644 --- a/Libs/Mmysqli.php +++ b/Libs/Mmysqli.php @@ -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);