Serghey Rodin 12 лет назад
Родитель
Сommit
aeeaab39aa
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      web/login/index.php

+ 2 - 0
web/login/index.php

@@ -33,7 +33,9 @@ if (isset($_POST['user']) && isset($_POST['password'])) {
     exec(VESTA_CMD ."v-check-user-password ".$v_user." ".$v_password." '".$_SERVER["REMOTE_ADDR"]."'",  $output, $return_var);
     if ( $return_var > 0 ) {
         $ERROR = "<a class=\"error\">".__('Invalid username or password')."</a>";
+
         // Set system language
+        unset($output);
         exec (VESTA_CMD . "v-list-sys-config json", $output, $return_var);
         $data = json_decode(implode('', $output), true);
         if (!empty( $data['config']['LANGUAGE'])) {