From e19b78ac136a92307789ae506f09e9ab3ed9d4f7 Mon Sep 17 00:00:00 2001 From: azett Date: Sun, 9 Oct 2022 15:56:41 +0200 Subject: [PATCH] fixed PHP warnings --- fp-includes/core/core.widgets.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fp-includes/core/core.widgets.php b/fp-includes/core/core.widgets.php index 71395ff..d85f314 100755 --- a/fp-includes/core/core.widgets.php +++ b/fp-includes/core/core.widgets.php @@ -45,6 +45,9 @@ class widget_indexer extends fs_filelister { else $params = array(); // $var = 'plugin_' . $newid . '_widget'; + if (!array_key_exists($newid, $fp_registered_widgets)) { + continue; + } $var = $fp_registered_widgets [$newid] ['func']; if (is_callable($var)) { $content = call_user_func_array($var, $params);