--- loncom/interface/lonpickcourse.pm 2010/07/08 23:19:19 1.99 +++ loncom/interface/lonpickcourse.pm 2010/09/23 21:50:37 1.100 @@ -1,7 +1,7 @@ # The LearningOnline Network # Pick a course # -# $Id: lonpickcourse.pm,v 1.99 2010/07/08 23:19:19 raeburn Exp $ +# $Id: lonpickcourse.pm,v 1.100 2010/09/23 21:50:37 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -830,7 +830,11 @@ sub timebased_select_form { sub get_coordinator_cloneable { my ($cloneruname,$clonerudom,$type) = @_; - if (&Apache::lonnet::homeserver($cloneruname,$clonerudom) eq 'no_host') { + if (($cloneruname!~/\w/) || ($clonerudom!~/\w/)) { + my $warning = '
'.&mt('Intended course owner not specified'). + '
'; + return ('',$warning); + } elsif (&Apache::lonnet::homeserver($cloneruname,$clonerudom) eq 'no_host') { my $warning = '
'.&mt('Intended course owner does not exist'). '
'; return ('',$warning);