diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2017-01-24 03:47:37 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2017-01-24 03:47:37 +0300 |
commit | 595243f12eb685b91737e9253b149800c7f8ce30 (patch) | |
tree | e9f9ae17e03535ba801d50e78834dba13b829b6b /core/Plugin/ControllerAdmin.php | |
parent | 58480471fefd778ab45b28a9f424707bc2709bf0 (diff) |
small performance improvement
Diffstat (limited to 'core/Plugin/ControllerAdmin.php')
-rw-r--r-- | core/Plugin/ControllerAdmin.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/Plugin/ControllerAdmin.php b/core/Plugin/ControllerAdmin.php index 73bf47d32b..7e6c679ddf 100644 --- a/core/Plugin/ControllerAdmin.php +++ b/core/Plugin/ControllerAdmin.php @@ -88,13 +88,13 @@ abstract class ControllerAdmin extends Controller private static function notifyAnyInvalidPlugin() { - $missingPlugins = \Piwik\Plugin\Manager::getInstance()->getMissingPlugins(); - - if (empty($missingPlugins)) { + if (!Piwik::hasUserSuperUserAccess()) { return; } - if (!Piwik::hasUserSuperUserAccess()) { + $missingPlugins = \Piwik\Plugin\Manager::getInstance()->getMissingPlugins(); + + if (empty($missingPlugins)) { return; } |