Bugfix
This commit is contained in:
parent
325fb092ad
commit
a6bfed9d86
|
@ -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;
|
||||
}
|
||||
|
||||
$ydelta = $yend - $ystart;
|
||||
else{
|
||||
$ydelta = $yend - $ystart;
|
||||
}
|
||||
$ptime = $ydelta / $pcount;
|
||||
|
||||
for($i=0; $i < $pcount; $i++){
|
||||
|
|
Loading…
Reference in New Issue
Block a user