mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 22:15:56 +00:00
pluginhost: always return an array in get_all()
This commit is contained in:
@@ -360,7 +360,9 @@ class PluginHost {
|
|||||||
function get_all($sender) {
|
function get_all($sender) {
|
||||||
$idx = get_class($sender);
|
$idx = get_class($sender);
|
||||||
|
|
||||||
return $this->storage[$idx];
|
$data = $this->storage[$idx];
|
||||||
|
|
||||||
|
return $data ? $data : [];
|
||||||
}
|
}
|
||||||
|
|
||||||
function clear_data($sender) {
|
function clear_data($sender) {
|
||||||
|
|||||||
Reference in New Issue
Block a user