$details ){ if ($details == $content) { echo ''.$details.''; echo '' ; } } } else { // we don't have a group name, so show all ! foreach ( $rpg_groups as $group => $details ){ if ($details == '') $details = $group.' - no name' ; echo ''.$details.''; echo '' ; } } }