diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2018-12-26 19:39:40 +0100 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2018-12-26 19:39:40 +0100 |
commit | 36830c43e7cd1bf277564a60ef1dcc7c69b7ea9c (patch) | |
tree | dfa378233b1c2b980534722d3ab671b4adb0dd8f /includes/pages/admin_arrive.php | |
parent | 26f58b8156324f09f5fc24680b45b844f6998fd6 (diff) |
Fix warning if searching two whitespaces and formatting
Diffstat (limited to 'includes/pages/admin_arrive.php')
-rw-r--r-- | includes/pages/admin_arrive.php | 4 |
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; } |