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:
authorThomas Steur <tsteur@users.noreply.github.com>2016-12-02 07:10:37 +0300
committerMatthieu Aubry <mattab@users.noreply.github.com>2016-12-02 07:10:37 +0300
commit32ed53c870717cf752f6433226eb66f88daafdff (patch)
treec51ffec62a98e0c5dbcb762ab5586c7cdb6aeaa2 /plugins/Marketplace/Plugins
parenta9038318a94cc32f0f15add5272322ff6afe71f5 (diff)
make sure to ignore free plugins (#10940)
This is related to https://forum.piwik.org/t/license-missing-of-a-free-glp-plugin/21674 Some users see a license warning for a free GPL plugin. I have spent hours trying to understand how this could possibly happen over the last weeks but not sure how it happens. It must be some kind of caching issue with a certain PHP version or something. This change might not fix the actual issue but is a good check to have on top to check for invalid licenses only if it is not a free plugin.
Diffstat (limited to 'plugins/Marketplace/Plugins')
-rw-r--r--plugins/Marketplace/Plugins/InvalidLicenses.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/Marketplace/Plugins/InvalidLicenses.php b/plugins/Marketplace/Plugins/InvalidLicenses.php
index 1a0a198f67..7ad01eefd2 100644
--- a/plugins/Marketplace/Plugins/InvalidLicenses.php
+++ b/plugins/Marketplace/Plugins/InvalidLicenses.php
@@ -189,6 +189,9 @@ class InvalidLicenses
if (!empty($paidPlugins)) {
foreach ($paidPlugins as $plugin) {
+ if (!empty($plugin['isFree'])) {
+ continue;
+ }
$pluginName = $plugin['name'];
if ($this->isPluginActivated($pluginName)) {
if (empty($plugin['consumer']['license'])) {