From ae56e591e94aa8375d1d344b823b897c380d9d2b Mon Sep 17 00:00:00 2001
From: Shish <shish@shishnet.org>
Date: Thu, 26 Jan 2012 17:36:22 +0000
Subject: [PATCH] sometimes, there is no token :O

---
 core/user.class.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/user.class.php b/core/user.class.php
index 7352122b..9ab57a57 100644
--- a/core/user.class.php
+++ b/core/user.class.php
@@ -184,7 +184,7 @@ class User {
 	}
 
 	public function check_auth_token() {
-		return ($_POST["auth_token"] == $this->get_auth_token());
+		return (isset($_POST["auth_token"]) && $_POST["auth_token"] == $this->get_auth_token());
 	}
 }
 ?>