Commit 6fb5f17b authored by Andrew Dolgov's avatar Andrew Dolgov

pluginhost: always return an array in get_all()

parent bed2d6e0
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment