1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 21:57:51 +02:00

Added check for empty sitebutton.

This commit is contained in:
Cameron
2015-08-26 18:06:13 -07:00
parent 46e336549c
commit d76f32551d

View File

@@ -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)))