Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MobileMessaging/API.php')
-rw-r--r--plugins/MobileMessaging/API.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/MobileMessaging/API.php b/plugins/MobileMessaging/API.php
index 345c633b15..9e24700d8a 100644
--- a/plugins/MobileMessaging/API.php
+++ b/plugins/MobileMessaging/API.php
@@ -417,6 +417,7 @@ class API extends \Piwik\Plugin\API
public function getDelegatedManagement()
{
Piwik::checkUserHasSomeViewAccess();
- return Option::get(MobileMessaging::DELEGATED_MANAGEMENT_OPTION) == 'true';
+ $option = Option::get(MobileMessaging::DELEGATED_MANAGEMENT_OPTION);
+ return $option === 'true';
}
}