Sfoglia il codice sorgente

Fixed some global var stuff for redirection again..

Moritz Schmidt 10 anni fa
parent
commit
6eaa559180
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      includes/user.inc.php

+ 4 - 0
includes/user.inc.php

@@ -33,6 +33,8 @@ Class User {
 
 	public function login($username, $password) {
 		global $db;
+		global $CONFIG;
+
 		$this->username = $username;
 		$this->password = $password;
 
@@ -76,6 +78,8 @@ Class User {
 	}
 
 	public function logout() {
+		global $CONFIG;
+		
 		$this->username = "";
 		$this->password = "";
 		$this->email = "";