Skip to content
Snippets Groups Projects
Commit 6fb5f17b authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

pluginhost: always return an array in get_all()

parent bed2d6e0
No related branches found
No related tags found
No related merge requests found
...@@ -360,7 +360,9 @@ class PluginHost { ...@@ -360,7 +360,9 @@ class PluginHost {
function get_all($sender) { function get_all($sender) {
$idx = get_class($sender); $idx = get_class($sender);
return $this->storage[$idx]; $data = $this->storage[$idx];
return $data ? $data : [];
} }
function clear_data($sender) { function clear_data($sender) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment