From 526bc06ba00e22bb26a79b0cd163f2caf88bbd73 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 23 Jul 2018 14:01:08 -0700 Subject: [PATCH] Issue #3258 Array in plugin.xml causing issues. --- e107_handlers/plugin_class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/e107_handlers/plugin_class.php b/e107_handlers/plugin_class.php index 853fc7aa2..741159386 100644 --- a/e107_handlers/plugin_class.php +++ b/e107_handlers/plugin_class.php @@ -3651,7 +3651,6 @@ class e107plugin { $this->log("Running ".__FUNCTION__); //XXX Could also be used for theme prefs.. perhaps this function should be moved elsewhere? - //TODO array support for prefs. ? or array() as used in xml site export? $mes = e107::getMessage(); @@ -3675,6 +3674,10 @@ class e107plugin { $value = constant($value); } + elseif($tmp = e107::unserialize($value)) // check for array data and convert when required. . + { + $value = $tmp; + } $remove = (varset($tag['@attributes']['deprecate']) == 'true') ? TRUE : FALSE;