--- loncom/lonnet/perl/lonnet.pm 2002/10/09 17:24:06 1.294 +++ loncom/lonnet/perl/lonnet.pm 2002/10/10 14:34:05 1.296 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.294 2002/10/09 17:24:06 matthew Exp $ +# $Id: lonnet.pm,v 1.296 2002/10/10 14:34:05 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -840,13 +840,16 @@ sub finishuserfileupload { } # Notify homeserver to grep it # - if -(&reply('fetchuserfile:'.$docudom.'/'.$docuname.'/'.$fname,$docuhome) eq 'ok') - { + + my $fetchresult= + &reply('fetchuserfile:'.$docudom.'/'.$docuname.'/'.$fname,$docuhome); + if ($fetchresult eq 'ok') { # # Return the URL to it return '/uploaded/'.$path.$fname; } else { + &logthis('Failed to transfer '.$docudom.'/'.$docuname.'/'.$fname. + ' to host '.$docuhome.': '.$fetchresult); return '/adm/notfound.html'; } } @@ -2325,7 +2328,7 @@ sub modifystudent { if ($first eq '' || $last eq '' || $uid eq '') { # They did not supply us with enough data to enroll the student, so # we need to pick up more information. - my %tmp = dump('environment',$udom,$uname, + my %tmp = &dump('environment',$udom,$uname, ['firstname','middlename','lastname', 'generation','id'] ); $first = $tmp{'firstname'} if (!defined($first) || $first eq '');