--- loncom/interface/londocs.pm 2007/07/07 00:53:24 1.287 +++ loncom/interface/londocs.pm 2007/07/12 01:04:36 1.288 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.287 2007/07/07 00:53:24 albertel Exp $ +# $Id: londocs.pm,v 1.288 2007/07/12 01:04:36 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -932,9 +932,10 @@ sub group_import { } } if ($url) { - if (!$residx) { - $residx = &LONCAPA::map::getresidx($url); - $LONCAPA::map::order[$#LONCAPA::map::order+1]=$residx; + if (!$residx + || defined($LONCAPA::map::zombies[$residx])) { + $residx = &LONCAPA::map::getresidx($url,$residx); + push(@LONCAPA::map::order, $residx); } my $ext = 'false'; if ($url=~m{^http://} || $url=~m{^https://}) { $ext = 'true'; }