From 310b7e84e1988ad57d142f4f0f0e708ca4ab868f Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 9 Sep 2018 19:47:50 -0700 Subject: [PATCH] Precaution added for old left-over plugin prefs using hooks --- e107_handlers/e_parse_class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/e107_handlers/e_parse_class.php b/e107_handlers/e_parse_class.php index 6ed1e2538..21b0e3aee 100644 --- a/e107_handlers/e_parse_class.php +++ b/e107_handlers/e_parse_class.php @@ -1959,7 +1959,11 @@ class e_parse extends e_parser } } - $sub_blk = $this->e_hook[$hook]->$hook($sub_blk,$opts['context']); + + if(is_object($this->e_hook[$hook])) // precaution for old plugins. + { + $sub_blk = $this->e_hook[$hook]->$hook($sub_blk,$opts['context']); + } } }