This commit is contained in:
PMKuipers 2023-07-27 16:58:15 +02:00
parent a6bfed9d86
commit 25f6046099

View file

@ -367,7 +367,7 @@ function xmldb_local_treestudyplan_upgrade($oldversion) {
for($i=0; $i < $pcount; $i++){ for($i=0; $i < $pcount; $i++){
$pnum = $i+1; $pnum = $i+1;
$pstart = $ystart + ($i*$ptime); $pstart = $ystart + ($i*$ptime);
$pend = $pstart + $ptime; $pend = ($pstart + $ptime)-(24*60*60); // minus one day
$o = [ "page_id" => $r->id, $o = [ "page_id" => $r->id,
"period" => $pnum, "period" => $pnum,