pluginhost: always return an array in get_all()
This commit is contained in:
parent
bed2d6e054
commit
6fb5f17be6
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue