From b1649d1ec5795c4969f1be0284df6e8d22826ecb Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Fri, 21 Mar 2003 08:47:06 +0000 Subject: [PATCH] hosts are now correctly listed --- lam/lib/listhosts.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lam/lib/listhosts.php b/lam/lib/listhosts.php index 3414c514..a8b38d75 100644 --- a/lam/lib/listhosts.php +++ b/lam/lib/listhosts.php @@ -35,7 +35,7 @@ $sr = ldap_search($_SESSION["ldap"]->server(), $_SESSION["config"]->get_HostSuffix(), $filter, $attrs); $info = ldap_get_entries($_SESSION["ldap"]->server, $sr); -ldap_free_result($sr); +//ldap_free_result($sr); // print host table echo "\n"; @@ -43,10 +43,11 @@ echo ""; echo ""; echo ""; echo ""; -for ($i = 0; $i < sizeof($info); $i++) { +// print host list +for ($i = 0; $i < sizeof($info)-1; $i++) { // ignore last entry in array which is "count" echo(""); - echo (""); - echo (""); + echo (""); + echo (""); echo(""); } echo ("
" . _("Host Name") . "RID
" . $info["cn"][$i] . "" . $info["rid"][$i] . "" . $info[$i]["cn"][0] . "" . $info[$i]["rid"][0] . "
");