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
$ydelta = (365*24*60*60)/$pcount;
}
else{
$ydelta = $yend - $ystart;
}
$ptime = $ydelta / $pcount;
for($i=0; $i < $pcount; $i++){