aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2018-06-13 09:27:02 +0200
committerGravatar GitHub <noreply@github.com> 2018-06-13 09:27:02 +0200
commit031acde003b85ae34a4996d0c02fdc41ffae5515 (patch)
treeec6817aaff32613856330a50058b1fa642cfc778 /lib
parentc0f2df3ef0de33e9b07269f6db887c373e45192e (diff)
Fix extension hook for updated articles (#1932)
* Fix extension hook for updated articles https://github.com/FreshRSS/FreshRSS/issues/1926 * Enable extensions during PubSubHubbub * A little array protection * Changelog 1926 https://github.com/FreshRSS/FreshRSS/issues/1926 https://github.com/FreshRSS/FreshRSS/pull/1932 * Add null check
Diffstat (limited to 'lib')
-rw-r--r--lib/Minz/ExtensionManager.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Minz/ExtensionManager.php b/lib/Minz/ExtensionManager.php
index 3914217ac..b086c4001 100644
--- a/lib/Minz/ExtensionManager.php
+++ b/lib/Minz/ExtensionManager.php
@@ -194,6 +194,9 @@ class Minz_ExtensionManager {
* @param string[] $ext_list the names of extensions we want to load.
*/
public static function enableByList($ext_list) {
+ if (!is_array($ext_list)) {
+ return;
+ }
foreach ($ext_list as $ext_name => $ext_status) {
if (is_int($ext_name)) { //Legacy format int=>name
self::enable($ext_status);