Explorar el Código

Fixed some global var stuff for redirection again..

Moritz Schmidt hace 10 años
padre
commit
6eaa559180
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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 = "";