Jakub Vrana 11 лет назад
Родитель
Сommit
150301ed
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      adminer/include/auth.inc.php

+ 2 - 2
adminer/include/auth.inc.php

@@ -137,13 +137,13 @@ if (isset($_GET["username"])) {
 	$connection = connect();
 }
 
+$driver = new Min_Driver($connection);
+
 if (!is_object($connection) || !$adminer->login($_GET["username"], get_password())) {
 	auth_error();
 	exit;
 }
 
-$driver = new Min_Driver($connection);
-
 if ($auth && $_POST["token"]) {
 	$_POST["token"] = $token; // reset token after explicit login
 }