]> git.wh0rd.org - tt-rss.git/commitdiff
pluginhost: always return an array in get_all()
authorAndrew Dolgov <fox@fakecake.org>
Sun, 17 Dec 2017 16:06:18 +0000 (19:06 +0300)
committerAndrew Dolgov <fox@fakecake.org>
Sun, 17 Dec 2017 16:06:18 +0000 (19:06 +0300)
classes/pluginhost.php

index 4224893c24163fd1624bd18c98686bb903d2ec5e..4eada78b297b3b7c983314101b702b07c7bc254f 100644 (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) {