diff options
author | Andrew Dolgov <[email protected]> | 2017-12-17 19:06:18 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-12-17 19:06:18 +0300 |
commit | 6fb5f17be69f9ff3a0e1379e64a3c7bd71ab3271 (patch) | |
tree | 7215bde54a9766eb96fccec5464fd0f740f02cfc /classes | |
parent | bed2d6e05499c574b64d1dfdf6be3f43d704abb6 (diff) |
pluginhost: always return an array in get_all()
Diffstat (limited to 'classes')
-rw-r--r-- | classes/pluginhost.php | 4 |
1 files changed, 3 insertions, 1 deletions
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) { |