]> git.mjollnir.org Git - moodle.git/commitdiff
Minor changes
authormartin <martin>
Tue, 25 Jun 2002 12:08:38 +0000 (12:08 +0000)
committermartin <martin>
Tue, 25 Jun 2002 12:08:38 +0000 (12:08 +0000)
course/weeks.php
lib/db/mysql.sql

index f6669819c398d00b9a4c009e443fc2d88b0f98e7..506e4a0ee3ff1e3f78a69fef506ad85dc8db4593 100644 (file)
@@ -98,7 +98,7 @@
     $course->enddate = $course->startdate + ($weekofseconds * $course->numsections);
 
     echo "<TABLE BORDER=0 CELLPADDING=8 CELLSPACING=0 WIDTH=100%>";
-    while ($weekdate <= $course->enddate) {
+    while ($weekdate < $course->enddate) {
 
         $nextweekdate = $weekdate + ($weekofseconds);
 
index 6bd3e770067004a2bba9a7ae1d9c678a3c9c9e8c..06d642f9f73359e5d0978e83154c2dc9a769f43b 100644 (file)
@@ -27,7 +27,7 @@ CREATE TABLE `course` (
   `student` varchar(100) NOT NULL default 'Student',
   `guest` tinyint(1) unsigned NOT NULL default '0',
   `startdate` int(10) unsigned NOT NULL default '0',
-  `numsections` int(10) unsigned NOT NULL default '0',
+  `numsections` smallint(5) unsigned NOT NULL default '1',
   `marker` int(10) unsigned NOT NULL default '0',
   `timecreated` int(10) unsigned NOT NULL default '0',
   `timemodified` int(10) unsigned NOT NULL default '0',