smarty.inc.php : use !empty to avoid php moaning

git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1625 a1433add-5e2c-0410-b055-b7f2511e0802
pull/2/head
David Goodwin 11 years ago
parent c2cfd6fe04
commit c7bceb77cb

@ -61,7 +61,7 @@ $smarty = new PFASmarty();
if (!isset($rel_path)) $rel_path = ''; # users/* sets this to '../' if (!isset($rel_path)) $rel_path = ''; # users/* sets this to '../'
$CONF['theme_css'] = $rel_path . htmlentities($CONF['theme_css']); $CONF['theme_css'] = $rel_path . htmlentities($CONF['theme_css']);
if ($CONF['theme_custom_css'] != "") $CONF['theme_custom_css'] = $rel_path . htmlentities($CONF['theme_custom_css']); if (!empty($CONF['theme_custom_css'])) $CONF['theme_custom_css'] = $rel_path . htmlentities($CONF['theme_custom_css']);
$CONF['theme_logo'] = $rel_path . htmlentities($CONF['theme_logo']); $CONF['theme_logo'] = $rel_path . htmlentities($CONF['theme_logo']);
$smarty->assign ('CONF', $CONF); $smarty->assign ('CONF', $CONF);

Loading…
Cancel
Save