Parcourir la source

Fixed some global var stuff for redirection again..

Moritz Schmidt il y a 10 ans
Parent
commit
6eaa559180
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  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 = "";