From ed3449d7aca7479f45dea48a34585f1c6509c654 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no>
Date: Fri, 30 Jan 2009 14:14:43 +0000
Subject: [PATCH] handle description not translated

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1221 44740490-163a-0410-bde0-09ae8108e29a
---
 modules/ldapstatus/templates/ldapstatus.php | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/modules/ldapstatus/templates/ldapstatus.php b/modules/ldapstatus/templates/ldapstatus.php
index c4df0b5f2..a9105bbab 100644
--- a/modules/ldapstatus/templates/ldapstatus.php
+++ b/modules/ldapstatus/templates/ldapstatus.php
@@ -53,7 +53,11 @@ foreach($this->data['sortedOrgIndex'] as $orgkey) {
 	$res = $this->data['results'][$orgkey];
 	echo('<tr class="' . ($classes[($i++ % 2)]) . '">');
 	if (array_key_exists('description', $this->data['orgconfig'][$orgkey])) {
-		echo('<td>' . htmlspecialchars($this->getTranslation($this->data['orgconfig'][$orgkey]['description'])) . '</td>');
+		echo('<td>' . htmlspecialchars(
+			$this->getTranslation(
+					SimpleSAML_Utilities::arrayize($this->data['orgconfig'][$orgkey]['description'], 'en')
+				)
+			) . '</td>');
 	} else {
 		echo('<td><span style="color: #b4b4b4; font-size: x-small">NA</span> <tt>' . $orgkey . '</tt></td>');
 	}
-- 
GitLab