pluginhost: always return an array in get_all()

This commit is contained in:
Andrew Dolgov 2017-12-17 19:06:18 +03:00
parent bed2d6e054
commit 6fb5f17be6

View file

@ -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) {