diff options
Diffstat (limited to 'plugins/CorePluginsAdmin/Marketplace.php')
-rw-r--r-- | plugins/CorePluginsAdmin/Marketplace.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/CorePluginsAdmin/Marketplace.php b/plugins/CorePluginsAdmin/Marketplace.php index 5fcd51641d..c8cfc114e8 100644 --- a/plugins/CorePluginsAdmin/Marketplace.php +++ b/plugins/CorePluginsAdmin/Marketplace.php @@ -140,7 +140,9 @@ class Marketplace { $plugin['isInstalled'] = \Piwik\Plugin\Manager::getInstance()->isPluginLoaded($plugin['name']); $plugin['canBeUpdated'] = $plugin['isInstalled'] && $this->hasPluginUpdate($plugin); - $plugin['lastUpdated'] = Date::factory($plugin['lastUpdated'])->getLocalized(Date::DATE_FORMAT_SHORT); + if (!empty($plugin['lastUpdated'])) { + $plugin['lastUpdated'] = Date::factory($plugin['lastUpdated'])->getLocalized(Date::DATE_FORMAT_SHORT); + } if ($plugin['canBeUpdated']) { $pluginUpdate = $this->getPluginUpdateInformation($plugin); @@ -159,7 +161,9 @@ class Marketplace if (!empty($plugin['versions'])) { foreach ($plugin['versions'] as $index => $version) { - $plugin['versions'][$index]['release'] = Date::factory($version['release'])->getLocalized(Date::DATE_FORMAT_LONG); + if (!empty($version['release'])) { + $plugin['versions'][$index]['release'] = Date::factory($version['release'])->getLocalized(Date::DATE_FORMAT_LONG); + } } } |