Переглянути джерело

Fixed some global var stuff for redirection again..

Moritz Schmidt 10 роки тому
батько
коміт
6eaa559180
1 змінених файлів з 4 додано та 0 видалено
  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 = "";