mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:05:16 +01:00
Prevent first event in the range from filling in empty dates when using 2432day/date2432
This commit is contained in:
parent
dfa96ca0a6
commit
f41e44fee7
@ -221,10 +221,11 @@ class calendar_merge extends bo_merge
|
|||||||
if(strpos($repeat, '$$day/date$$') !== false) {
|
if(strpos($repeat, '$$day/date$$') !== false) {
|
||||||
$date_marker = array('$$day/date$$' => date($GLOBALS['egw_info']['user']['preferences']['common']['dateformat'], strtotime($day)));
|
$date_marker = array('$$day/date$$' => date($GLOBALS['egw_info']['user']['preferences']['common']['dateformat'], strtotime($day)));
|
||||||
if(!is_array($days[date('Ymd',$_date)][date('l',strtotime($day))])) {
|
if(!is_array($days[date('Ymd',$_date)][date('l',strtotime($day))])) {
|
||||||
$days[date('Ymd',$_date)][date('l',strtotime($day))] = array($date_marker);
|
$blank = $this->calendar_replacements(array());
|
||||||
} else {
|
foreach($blank as &$value) $value = '';
|
||||||
$days[date('Ymd',$_date)][date('l',strtotime($day))][0] += $date_marker;
|
$days[date('Ymd',$_date)][date('l',strtotime($day))][] = $blank;
|
||||||
}
|
}
|
||||||
|
$days[date('Ymd',$_date)][date('l',strtotime($day))][0] += $date_marker;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $days[date('Ymd',$_date)][$plugin][0];
|
return $days[date('Ymd',$_date)][$plugin][0];
|
||||||
@ -289,10 +290,11 @@ class calendar_merge extends bo_merge
|
|||||||
if(strpos($repeat, '$$day/date$$') !== false) {
|
if(strpos($repeat, '$$day/date$$') !== false) {
|
||||||
$date_marker = array('$$day/date$$' => date($GLOBALS['egw_info']['user']['preferences']['common']['dateformat'], strtotime($day)));
|
$date_marker = array('$$day/date$$' => date($GLOBALS['egw_info']['user']['preferences']['common']['dateformat'], strtotime($day)));
|
||||||
if(!is_array($days[date('Ymd',$_date)][$plugin])) {
|
if(!is_array($days[date('Ymd',$_date)][$plugin])) {
|
||||||
$days[date('Ymd',$_date)][$plugin] = array($date_marker);
|
$blank = $this->calendar_replacements(array());
|
||||||
} else {
|
foreach($blank as &$value) $value = '';
|
||||||
$days[date('Ymd',$_date)][$plugin][0] += $date_marker;
|
$days[date('Ymd',$_date)][$plugin][] = $blank;
|
||||||
}
|
}
|
||||||
|
$days[date('Ymd',$_date)][$plugin][0] += $date_marker;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $days[date('Ymd',$_date)][$plugin][0];
|
return $days[date('Ymd',$_date)][$plugin][0];
|
||||||
|
Loading…
Reference in New Issue
Block a user