ispman/scripts ldifupdate,1.6,1.7

[email protected]
Newsgroups gmane.comp.isp.ispman.cvs
Message-ID <[email protected]>
Update of /cvsroot/ispman/ispman/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5062/scripts

Modified Files:
	ldifupdate 
Log Message:
fixed perl warnings

Index: ldifupdate
===================================================================
RCS file: /cvsroot/ispman/ispman/scripts/ldifupdate,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- ldifupdate	7 Feb 2004 14:57:56 -0000	1.6
+++ ldifupdate	7 Feb 2004 15:05:29 -0000	1.7
@@ -279,13 +279,15 @@
 	}
 
 	# checking for bogus mailHost
-	if ($entry->get_value("mailHost") eq "undefined"){
+	if ($entry->get_value("mailHost") &&
+	    $entry->get_value("mailHost") eq "undefined"){
 	    $msg.="deleting mailhost: undefined\n";
 	    ldif_action("delete","mailhost","undefined");
 	}
 
 	# checking for bogus fileHost
-	if ($entry->get_value("fileHost") eq "undefined"){
+	if ($entry->get_value("fileHost") && 
+	    $entry->get_value("fileHost") eq "undefined"){
 	    $msg.="deleting filehost: undefined\n";
 	    ldif_action("delete","filehost","undefined");
 	}



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.