fixed errors if DNs are listed as attributes

This commit is contained in:
Roland Gruber 2003-06-28 13:44:25 +00:00
parent fda0b3eb3d
commit a45fdd9ca6
2 changed files with 8 additions and 4 deletions

View File

@ -200,7 +200,7 @@ for ($i = $table_begin; $i < $table_end; $i++) {
// print all attribute entries seperated by "; "
if (sizeof($grp_info[$i][strtolower($attr_array[$k])]) > 0) {
// delete first array entry which is "count"
if (! $_GET['norefresh']) array_shift($grp_info[$i][strtolower($attr_array[$k])]);
if ((! $_GET['norefresh']) && (is_array($grp_info[$i][strtolower($attr_array[$k])]))) array_shift($grp_info[$i][strtolower($attr_array[$k])]);
// generate links for group members
if (strtolower($attr_array[$k]) == "memberuid") {
$linklist = array();
@ -213,7 +213,10 @@ for ($i = $table_begin; $i < $table_end; $i++) {
}
// print all other attributes
else {
echo implode("; ", $grp_info[$i][strtolower($attr_array[$k])]);
if (is_array($grp_info[$i][strtolower($attr_array[$k])])) {
echo implode("; ", $grp_info[$i][strtolower($attr_array[$k])]);
}
else echo $grp_info[$i][strtolower($attr_array[$k])];
}
}
echo ("</td>");

View File

@ -206,8 +206,9 @@ for ($i = $table_begin; $i < $table_end; $i++) {
// print all attribute entries seperated by "; "
if (sizeof($hst_info[$i][strtolower($attr_array[$k])]) > 0) {
// delete first array entry which is "count"
if (! $_GET['norefresh']) array_shift($hst_info[$i][strtolower($attr_array[$k])]);
echo implode("; ", $hst_info[$i][strtolower($attr_array[$k])]);
if ((! $_GET['norefresh']) && (is_array($hst_info[$i][strtolower($attr_array[$k])]))) array_shift($hst_info[$i][strtolower($attr_array[$k])]);
if (is_array($hst_info[$i][strtolower($attr_array[$k])])) echo implode("; ", $hst_info[$i][strtolower($attr_array[$k])]);
else echo $hst_info[$i][strtolower($attr_array[$k])];
}
echo ("</td>");
}