aboutsummaryrefslogtreecommitdiff
path: root/lib/plugins/engine/PluginRepository.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/plugins/engine/PluginRepository.class.php')
-rw-r--r--lib/plugins/engine/PluginRepository.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/plugins/engine/PluginRepository.class.php b/lib/plugins/engine/PluginRepository.class.php
index ef09a6c..14415f4 100644
--- a/lib/plugins/engine/PluginRepository.class.php
+++ b/lib/plugins/engine/PluginRepository.class.php
@@ -116,7 +116,7 @@ class PluginRepository
*/
protected function registerPlugin($name, $meta_data)
{
- $old_data = $this->plugins[$name];
+ $old_data = $this->plugins[$name] ?? null;
if (!isset($old_data) ||
version_compare($meta_data['version'], $old_data['version']) > 0) {
@@ -132,7 +132,7 @@ class PluginRepository
*/
public function getPlugin($name)
{
- return $this->plugins[$name];
+ return $this->plugins[$name] ?? null;
}
/**