summaryrefslogtreecommitdiff
path: root/includes/pages/admin_free.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-12-28 21:39:23 +0100
committerIgor Scheller <igor.scheller@igorshp.de>2018-12-28 21:39:23 +0100
commit540efef63ebee72853be4f79a0cf689b62bcc339 (patch)
treea246f79bf74844f95bf9defe675805bc2534c3a1 /includes/pages/admin_free.php
parent491ee376517cded3c9c8d2389e3f9f21daa1a407 (diff)
active angels: Bugfix and prevent errors when searching double spaces
Diffstat (limited to 'includes/pages/admin_free.php')
-rw-r--r--includes/pages/admin_free.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/pages/admin_free.php b/includes/pages/admin_free.php
index f666b077..d2facbc8 100644
--- a/includes/pages/admin_free.php
+++ b/includes/pages/admin_free.php
@@ -72,7 +72,8 @@ function admin_free()
$match = false;
$index = join('', $usr->toArray());
foreach ($tokens as $t) {
- if (stristr($index, trim($t))) {
+ $t = trim($t);
+ if (!empty($t) && stristr($index, $t)) {
$match = true;
break;
}