diff --git a/modules/ldapstatus/templates/default/ldapstatus.php b/modules/ldapstatus/templates/default/ldapstatus.php index 6ac7cca3eeba9091c26fe2710d4ec51c77d0e681..4697dd0804adb5c4260b1fdd41d8e9cf0ca64fda 100644 --- a/modules/ldapstatus/templates/default/ldapstatus.php +++ b/modules/ldapstatus/templates/default/ldapstatus.php @@ -54,7 +54,11 @@ $classes = array('odd', 'even'); foreach($this->data['sortedOrgIndex'] as $orgkey) { $res = $this->data['results'][$orgkey]; echo('<tr class="' . ($classes[($i++ % 2)]) . '">'); - echo('<td>' . htmlspecialchars($this->getTranslation($this->data['orgconfig'][$orgkey]['description'])) . '</td>'); + if (array_key_exists('description', $this->data['orgconfig'][$orgkey])) { + echo('<td>' . htmlspecialchars($this->getTranslation($this->data['orgconfig'][$orgkey]['description'])) . '</td>'); + } else { + echo('<span style="color: #b4b4b4; font-size: x-small">NA</span>'); + } # echo('<td><tt>' . htmlspecialchars($orgkey) . '</tt></td>'); showRes('config', $res, $this); showRes('configMeta', $res, $this);