From d76f32551d43841d4430433008197aedb3c6f703 Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 26 Aug 2015 18:06:13 -0700 Subject: [PATCH] Added check for empty sitebutton. --- e107_plugins/siteinfo/e_shortcode.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/e107_plugins/siteinfo/e_shortcode.php b/e107_plugins/siteinfo/e_shortcode.php index 3068e3740..b01941f4c 100644 --- a/e107_plugins/siteinfo/e_shortcode.php +++ b/e107_plugins/siteinfo/e_shortcode.php @@ -25,6 +25,12 @@ class siteinfo_shortcodes // must match the folder name of the plugin. $h = !empty($parm['h']) ? $parm['h'] : 100; $path = e107::getConfig()->get('sitebutton'); + + if(empty($path)) + { + return false; + } + $realPath = e107::getParser()->replaceConstants($path); if(defined('e_MEDIA') && is_writeable(e_MEDIA."temp/") && ($resized = e107::getMedia()->resizeImage($path, e_MEDIA."temp/".basename($realPath),'h='.$h)))