--- loncom/lonnet/perl/lonnet.pm 2007/07/26 02:09:24 1.899 +++ loncom/lonnet/perl/lonnet.pm 2007/07/26 04:05:43 1.900 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.899 2007/07/26 02:09:24 raeburn Exp $ +# $Id: lonnet.pm,v 1.900 2007/07/26 04:05:43 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -866,7 +866,7 @@ sub inst_directory_query { &escape($srch->{'srchby'}).':'. &escape($srch->{'srchterm'}).':'. $srch->{'srchtype'},$homeserver); - unless ($response eq 'refused') { + if ($response ne 'refused') { my @matches = split/&/,$response; foreach my $match (@matches) { my ($key,$value) = split(/=/,$match); @@ -906,7 +906,7 @@ sub usersearch { if ( ($reply =~/^timeout/) || ($reply =~/^error/) ) { &logthis('usersrch error: '.$reply.' for '.$dom.' - searching for : '.$srch->{'srchterm'}.' by '.$srch->{'srchby'}.' ('.$srch->{'srchtype'}.') - maxtries: '.$maxtries.' tries: '.$tries); } else { - my @matches = split/&/,$reply; + my @matches = split(/&/,$reply); foreach my $match (@matches) { my @items = split(/:/,$match); my ($uname,$udom,%userhash);