--- loncom/interface/loncreateuser.pm 2008/07/13 00:15:14 1.252 +++ loncom/interface/loncreateuser.pm 2008/07/14 10:35:00 1.255 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Create a user # -# $Id: loncreateuser.pm,v 1.252 2008/07/13 00:15:14 raeburn Exp $ +# $Id: loncreateuser.pm,v 1.255 2008/07/14 10:35:00 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1411,11 +1411,13 @@ sub personal_data_display { $rolesarray = \@inststatuses; } } - if (!$newuser || $context eq 'selfcreate') { + if (!$newuser) { # Get the users information %userenv = &Apache::lonnet::get('environment', ['firstname','middlename','lastname','generation', 'permanentemail','id'],$ccdomain,$ccuname); + } + if ((!$newuser) || ($context eq 'selfcreate')) { %canmodify = &Apache::lonuserutils::can_modify_userinfo($context,$ccdomain, \@userinfo,$rolesarray); @@ -1460,6 +1462,8 @@ sub personal_data_display { } else { $hiderow = 1; } + } else { + $row .= ''; } } } else { @@ -1470,6 +1474,8 @@ sub personal_data_display { } else { $hiderow = 1; } + } else { + $row .= ''; } } } else { @@ -3700,7 +3706,7 @@ sub print_userchangelogs_display { &mt('Context').''.&mt('Start').''.&mt('End').''. &Apache::loncommon::end_data_table_header_row(); my ($minshown,$maxshown); - my $minshown = 1; + $minshown = 1; my $count = 0; if ($curr{'show'} ne &mt('all')) { $maxshown = $curr{'page'} * $curr{'show'};