Bugfix
This commit is contained in:
parent
325fb092ad
commit
a6bfed9d86
1 changed files with 3 additions and 2 deletions
|
@ -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++){
|
||||||
|
|
Loading…
Reference in a new issue