This commit is contained in:
PMKuipers 2023-07-27 16:15:46 +02:00
parent 325fb092ad
commit a6bfed9d86

View file

@ -359,8 +359,9 @@ function xmldb_local_treestudyplan_upgrade($oldversion) {
// If no end time is given, assume a year duration for period calculations // If no end time is given, assume a year duration for period calculations
$ydelta = (365*24*60*60)/$pcount; $ydelta = (365*24*60*60)/$pcount;
} }
else{
$ydelta = $yend - $ystart; $ydelta = $yend - $ystart;
}
$ptime = $ydelta / $pcount; $ptime = $ydelta / $pcount;
for($i=0; $i < $pcount; $i++){ for($i=0; $i < $pcount; $i++){