--- loncom/interface/loncommon.pm 2006/10/31 22:05:53 1.466 +++ loncom/interface/loncommon.pm 2006/11/01 22:22:31 1.467 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.466 2006/10/31 22:05:53 albertel Exp $ +# $Id: loncommon.pm,v 1.467 2006/11/01 22:22:31 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2072,6 +2072,8 @@ sub getemails { if ($udom eq 'public' && $uname eq 'public') { return; } + if (!$udom) { $udom=$env{'user.domain'}; } + if (!$uname) { $uname=$env{'user.name'}; } my $id=$uname.':'.$udom; my ($names,$cached)=&Apache::lonnet::is_cached_new('emailscache',$id); if ($cached) {