andre 4 лет назад
Родитель
Сommit
4b22db3f02
1 измененных файлов с 1 добавлено и 4 удалено
  1. 1 4
      index.php

+ 1 - 4
index.php

@@ -9,7 +9,7 @@ class db extends mysqli {
     public function __construct() {
         @parent::__construct($this->$host, $this->$user, $this->$pass, $this->$db);
         if($this->connect_errno){
-            die($db->connect_error);
+            die($this->connect_error);
         }
     }
 }
@@ -17,9 +17,6 @@ $ip = trim($_GET['ip']);
 $token = trim($_GET['token']);
 $action = trim($_GET['action']);
 $db = new db();
-if ($db->connect_errno){
-    die($db->connect_error);
-}
 $db->set_charset('utf8');
 
 function checkToken($token,$db) {