diff --git a/classes/pluginhost.php b/classes/pluginhost.php index 4224893c2..4eada78b2 100644 --- a/classes/pluginhost.php +++ b/classes/pluginhost.php @@ -360,7 +360,9 @@ class PluginHost { function get_all($sender) { $idx = get_class($sender); - return $this->storage[$idx]; + $data = $this->storage[$idx]; + + return $data ? $data : []; } function clear_data($sender) {