From 6cf771f2bc4d5dc7e5a244dc19c709d0e64531ef Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 4 Mar 2021 15:57:11 +0300 Subject: [PATCH] _get_available_plugins: decode as array --- classes/pref/prefs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index 1ba8ff3c4..5419b42dc 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -1355,7 +1355,7 @@ class Pref_Prefs extends Handler_Protected { private function _get_available_plugins(array $installed = []) { if ($_SESSION["access_level"] >= 10 && Config::get(Config::ENABLE_PLUGIN_INSTALLER)) { - $obj = json_decode(UrlHelper::fetch(['url' => 'https://tt-rss.org/plugins.json'])); + $obj = json_decode(UrlHelper::fetch(['url' => 'https://tt-rss.org/plugins.json']), true); // TODO: filter installed, we'll need class names in the plugins.json