--- loncom/interface/slotrequest.pm 2009/10/31 05:39:25 1.105 +++ loncom/interface/slotrequest.pm 2010/05/27 04:44:33 1.107 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler for requesting to have slots added to a students record # -# $Id: slotrequest.pm,v 1.105 2009/10/31 05:39:25 raeburn Exp $ +# $Id: slotrequest.pm,v 1.107 2010/05/27 04:44:33 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -847,7 +847,7 @@ sub show_choices { (keys(%slots))) { &Apache::lonxml::debug("Checking Slot $slot"); - next if (!&allowed_slot($slot,$slots{$slot},undef,\%slots, + next if (!&allowed_slot($slot,$slots{$slot},$symb,\%slots, $consumed_uniqueperiods)); push(@available,$slot); @@ -1050,7 +1050,11 @@ sub show_table { } if (!keys(%slots)) { - $r->print('
'.&mt('No slots have been created in this course.').'
'); + if ($crstype eq 'Community') { + $r->print('
'.&mt('No slots have been created in this community.').'
'); + } else { + $r->print('
'.&mt('No slots have been created in this course.').'
'); + } return; }