fix autodetection for the week of the month

remotes/origin/stable
Georg Ehrke 13 years ago
parent edc9a150aa
commit a01a3d412c
  1. 3
      apps/calendar/lib/object.php

@ -683,7 +683,8 @@ class OC_Calendar_Object{
break; break;
}elseif($request['advanced_month_select'] == 'weekday'){ }elseif($request['advanced_month_select'] == 'weekday'){
if($request['weekofmonthoptions'] == 'auto'){ if($request['weekofmonthoptions'] == 'auto'){
$weekofmonth = floor($request['weekofmonthoptions']/7); list($_day, $_month, $_year) = explode('-', $from);
$weekofmonth = floor($_day/7);
}else{ }else{
$weekofmonth = $request['weekofmonthoptions']; $weekofmonth = $request['weekofmonthoptions'];
} }

Loading…
Cancel
Save