summaryrefslogtreecommitdiffstats
path: root/inc/util.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2015-03-03 19:01:30 +0100
committerSimon Rettberg2015-03-03 19:01:30 +0100
commitc90c7bfb5d72d327e6fe8fb3a85d852ec1ee94a4 (patch)
tree3d6ed553f0308dbd315b6e43785b55e429ec037b /inc/util.inc.php
parentSecond Commit (diff)
downloadbwlp-webadmin-c90c7bfb5d72d327e6fe8fb3a85d852ec1ee94a4.tar.gz
bwlp-webadmin-c90c7bfb5d72d327e6fe8fb3a85d852ec1ee94a4.tar.xz
bwlp-webadmin-c90c7bfb5d72d327e6fe8fb3a85d852ec1ee94a4.zip
Third Commit
Diffstat (limited to 'inc/util.inc.php')
-rw-r--r--inc/util.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/util.inc.php b/inc/util.inc.php
index 4378a08..aaf46c6 100644
--- a/inc/util.inc.php
+++ b/inc/util.inc.php
@@ -95,11 +95,11 @@ SADFACE;
*/
public static function verifyToken()
{
- if (Session::get('token') === false)
+ if (Session::get('token') === false && Session::getUid() === false)
return true;
if (isset($_REQUEST['token']) && Session::get('token') === $_REQUEST['token'])
return true;
- Message::addError('token');
+ Message::addError('Fehlerhaftes Token!');
return false;
}