--- loncom/interface/slotrequest.pm	2005/10/17 18:23:46	1.23
+++ loncom/interface/slotrequest.pm	2005/10/17 21:21:39	1.25
@@ -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.23 2005/10/17 18:23:46 albertel Exp $
+# $Id: slotrequest.pm,v 1.25 2005/10/17 21:21:39 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -521,9 +521,13 @@ sub show_table {
 	    my (undef,$id)=split("\0",$entry);
 	    $ids.= $id.'-> '.$consumed{$entry}->{'name'}.'<br />';
 	}
-	my $start=&Apache::lonlocal::locallocaltime($slots{$slot}->{'starttime'});
-	my $end=&Apache::lonlocal::locallocaltime($slots{$slot}->{'endtime'});
-	my $start_reserve=&Apache::lonlocal::locallocaltime($slots{$slot}->{'startreserve'});
+	my $start=($slots{$slot}->{'starttime'}?
+		   &Apache::lonlocal::locallocaltime($slots{$slot}->{'starttime'}):'');
+	my $end=($slots{$slot}->{'endtime'}?
+		 &Apache::lonlocal::locallocaltime($slots{$slot}->{'endtime'}):'');
+	my $start_reserve=($slots{$slot}->{'endtime'}?
+			   &Apache::lonlocal::locallocaltime($slots{$slot}->{'startreserve'}):'');
+	
 	my $unique;
 	if (ref($slots{$slot}{'uniqueperiod'})) {
 	    $unique=localtime($slots{$slot}{'uniqueperiod'}[0]).','.
@@ -544,9 +548,8 @@ sub show_table {
 	my $proctors=join(', ',@proctors);
 
 	my $edit=(<<EDITFORM);
-<form method="POST">
-  <input type="hidden" name="command" value="editslot" />
-  <input type="hidden" name="slot" value="$slot" />
+<form method="POST" action="/adm/helper/newslot.helper">
+  <input type="hidden" name="name" value="$slot" />
   <input type="submit" name="Edit" value="Edit" />
 </form>
 EDITFORM