]> git.wh0rd.org - tt-rss.git/blobdiff - classes/pluginhost.php
feed editor: expose site_url for editing
[tt-rss.git] / classes / pluginhost.php
index f9d5bc29aa7c36945c85a0e8c098ad28abc1d94f..4eada78b297b3b7c983314101b702b07c7bc254f 100644 (file)
@@ -56,6 +56,7 @@ class PluginHost {
        const HOOK_FORMAT_ARTICLE_CDM = 35;
        const HOOK_FEED_BASIC_INFO = 36;
        const HOOK_SEND_LOCAL_FILE = 37;
+       const HOOK_UNSUBSCRIBE_FEED = 38;
 
        const KIND_ALL = 1;
        const KIND_SYSTEM = 2;
@@ -359,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) {