From 71dfc834662eb4172221b3f717b03665472f3657 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 12 Feb 2021 17:20:37 +0300 Subject: [PATCH] force _ENABLED_PLUGINS to string when passed to pluginhost --- classes/handler/public.php | 2 +- classes/rssutils.php | 4 ++-- classes/userhelper.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/classes/handler/public.php b/classes/handler/public.php index 9dbb197f2..fca471122 100755 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -44,7 +44,7 @@ class Handler_Public extends Handler { $tmppluginhost = new PluginHost(); $tmppluginhost->load(PLUGINS, PluginHost::KIND_ALL); - $tmppluginhost->load($user_plugins, PluginHost::KIND_USER, $owner_uid); + $tmppluginhost->load((string)$user_plugins, PluginHost::KIND_USER, $owner_uid); //$tmppluginhost->load_data(); $handler = $tmppluginhost->get_feed_handler( diff --git a/classes/rssutils.php b/classes/rssutils.php index 388eeb234..9dd7c4ab1 100755 --- a/classes/rssutils.php +++ b/classes/rssutils.php @@ -276,7 +276,7 @@ class RSSUtils { $user_plugins = get_pref("_ENABLED_PLUGINS", $owner_uid); $pluginhost->load(PLUGINS, PluginHost::KIND_ALL); - $pluginhost->load($user_plugins, PluginHost::KIND_USER, $owner_uid); + $pluginhost->load((string)$user_plugins, PluginHost::KIND_USER, $owner_uid); //$pluginhost->load_data(); $basic_info = []; @@ -401,7 +401,7 @@ class RSSUtils { $user_plugins = get_pref("_ENABLED_PLUGINS", $owner_uid); $pluginhost->load(PLUGINS, PluginHost::KIND_ALL); - $pluginhost->load($user_plugins, PluginHost::KIND_USER, $owner_uid); + $pluginhost->load((string)$user_plugins, PluginHost::KIND_USER, $owner_uid); //$pluginhost->load_data(); $rss_hash = false; diff --git a/classes/userhelper.php b/classes/userhelper.php index 6c6ad10d9..c9c4dd102 100644 --- a/classes/userhelper.php +++ b/classes/userhelper.php @@ -77,7 +77,7 @@ class UserHelper { if ($owner_uid && SCHEMA_VERSION >= 100 && empty($_SESSION["safe_mode"])) { $plugins = get_pref("_ENABLED_PLUGINS", $owner_uid); - $pluginhost->load($plugins, PluginHost::KIND_USER, $owner_uid); + $pluginhost->load((string)$plugins, PluginHost::KIND_USER, $owner_uid); /*if (get_schema_version() > 100) { $pluginhost->load_data();