summaryrefslogtreecommitdiff
path: root/includes/pages/admin_arrive.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/pages/admin_arrive.php')
-rw-r--r--includes/pages/admin_arrive.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/pages/admin_arrive.php b/includes/pages/admin_arrive.php
index 90f939fb..aedb0803 100644
--- a/includes/pages/admin_arrive.php
+++ b/includes/pages/admin_arrive.php
@@ -79,11 +79,13 @@ function admin_arrive()
$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;
}
}
+
if (!$match) {
continue;
}