diff --git a/e107_plugins/siteinfo/e_shortcode.php b/e107_plugins/siteinfo/e_shortcode.php index 7eea2f54b..f025f1951 100644 --- a/e107_plugins/siteinfo/e_shortcode.php +++ b/e107_plugins/siteinfo/e_shortcode.php @@ -27,7 +27,7 @@ class siteinfo_shortcodes // must match the folder name of the plugin. $path = e107::getConfig()->get('sitebutton'); $realPath = e107::getParser()->replaceConstants($path); - if($resized = e107::getMedia()->resizeImage($path, e_MEDIA."temp/".basename($realPath),'h='.$h)) + if(defined('e_MEDIA') && is_writeable(e_MEDIA."temp/") && ($resized = e107::getMedia()->resizeImage($path, e_MEDIA."temp/".basename($realPath),'h='.$h))) { $path = e107::getParser()->createConstants($resized); }