From a76743f8e489ef2e3a81c53b4fd1a3c1ea9fed21 Mon Sep 17 00:00:00 2001 From: "terry%netscape.com" Date: Mon, 2 Nov 1998 19:48:24 +0000 Subject: [PATCH] Cope a little better when there is no ldap server. --- webtools/bonsai/toplevel.cgi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/webtools/bonsai/toplevel.cgi b/webtools/bonsai/toplevel.cgi index 03b427c29035..718746e81f16 100755 --- a/webtools/bonsai/toplevel.cgi +++ b/webtools/bonsai/toplevel.cgi @@ -144,6 +144,9 @@ proc GetInfoForPeople {peoplelist} { if {$ldaperror} { return } + if {[cequal $ldapserver ""]} { + return + } if {[catch {set fid [open "|./data/ldapsearch -b \"o=Netscape Communications Corp.,c=US\" -h $ldapserver -p $ldapport -s sub -S mail \"$query\" mail cn nscpcurcontactinfo" r]} errvar]} { set ldaperror 1 } else { @@ -193,7 +196,10 @@ if {[info exists people]} { } puts "" - puts "" + puts "" + if {![cequal $ldapserver ""]} { + puts "" + } foreach p $peoplelist { if {[info exists closedcheckin($p)]} {
WhoWhatHow to contactWhoWhatHow to contact