From eaecc593ae019f2ee99c4d4aa3a351707c1761c8 Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 28 Jan 2014 06:00:46 -0800 Subject: [PATCH] Fix for PHP warning. --- e107_plugins/siteinfo/e_shortcode.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/e107_plugins/siteinfo/e_shortcode.php b/e107_plugins/siteinfo/e_shortcode.php index 5ae059e49..312621e7e 100644 --- a/e107_plugins/siteinfo/e_shortcode.php +++ b/e107_plugins/siteinfo/e_shortcode.php @@ -53,7 +53,10 @@ class siteinfo_shortcodes // must match the folder name of the plugin. function sc_logo($parm = '') { - parse_str(vartrue($parm)); // Optional {LOGO=file=file_name} or {LOGO=link=url} or {LOGO=file=file_name&link=url} + if(is_string($parm)) + { + parse_str(vartrue($parm),$parm); // Optional {LOGO=file=file_name} or {LOGO=link=url} or {LOGO=file=file_name&link=url} + } // Paths to image file, link are relative to site base $tp = e107::getParser();