diff options
author | Fabian Becker <fabian.becker@uni-tuebingen.de> | 2013-09-08 22:10:56 +0400 |
---|---|---|
committer | Fabian Becker <fabian.becker@uni-tuebingen.de> | 2013-09-08 22:10:56 +0400 |
commit | 8b11944fc8f45f304f4651298955f233513c785c (patch) | |
tree | a3daa413f86943ccce3f922d26cb0166b6408b1f /core | |
parent | fcaf5e4afa8b3c37210b32fc49b1c57a2c768768 (diff) |
Fix for notice on bulk import
fixed #4140
Diffstat (limited to 'core')
-rw-r--r-- | core/Tracker/Request.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/core/Tracker/Request.php b/core/Tracker/Request.php index 755e079891..93075113a0 100644 --- a/core/Tracker/Request.php +++ b/core/Tracker/Request.php @@ -105,12 +105,9 @@ class Request } // Now checking the list of admin token_auth cached in the Tracker config file - if (!empty($idSite) - && $idSite > 0 - ) { + if (!empty($idSite) && $idSite > 0) { $website = Cache::getCacheWebsiteAttributes($idSite); - $adminTokenAuth = $website['admin_token_auth']; - if (in_array($tokenAuth, $adminTokenAuth)) { + if (array_key_exists('admin_token_auth', $website) && in_array($tokenAuth, $website['admin_token_auth'])) { return true; } } |