--- rat/lonpageflip.pm 2004/10/18 22:24:00 1.48 +++ rat/lonpageflip.pm 2004/10/19 15:26:53 1.49 @@ -2,7 +2,7 @@ # # Page flip handler # -# $Id: lonpageflip.pm,v 1.48 2004/10/18 22:24:00 albertel Exp $ +# $Id: lonpageflip.pm,v 1.49 2004/10/19 15:26:53 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -269,7 +269,7 @@ sub handler { my $safecount=0; while (($next) && ($next!~/\,/) && ((!$hash{'src_'.$next}) || - ($ENV{'request.role.adv'}) && $hash{'randomout_'.$next})) + ((!$ENV{'request.role.adv'}) && $hash{'randomout_'.$next})) && ($safecount<10000)) { ($next,$endupmap)=&move($next,$endupmap,$direction); $safecount++;