removed unnecessary checks in PMA_getIcon()

This commit is contained in:
Sebastian Mendel
2007-10-11 09:11:22 +00:00
parent 008074946b
commit 504150a491

View File

@@ -84,10 +84,7 @@ function PMA_getIcon($icon, $alternate = '', $container = false, $force_text = f
$alternate = htmlspecialchars($alternate); $alternate = htmlspecialchars($alternate);
$button = ''; $button = '';
if (($GLOBALS['cfg']['PropertiesIconic'] && $icon) if ($GLOBALS['cfg']['PropertiesIconic']) {
|| ! strlen($alternate)) {
// we have valid icon and $cfg['PropertiesIconic'] is true or both
// OR $alternate is empty
$include_icon = true; $include_icon = true;
} }