From: Andrew Dolgov Date: Sun, 17 Dec 2017 16:06:18 +0000 (+0300) Subject: pluginhost: always return an array in get_all() X-Git-Tag: 18.8~96 X-Git-Url: https://git.wh0rd.org/?p=tt-rss.git;a=commitdiff_plain;h=6fb5f17be69f9ff3a0e1379e64a3c7bd71ab3271 pluginhost: always return an array in get_all() --- diff --git a/classes/pluginhost.php b/classes/pluginhost.php index 4224893c..4eada78b 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) {