mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-23 13:51:12 +01:00
* eMail: absent-notice via timed sieve; if using timed sieve and 6933start_date6933 and/or 6933end_date6933 and common dateformat could not be retrieved as runtime, replacement resulted in a empty string, causing the intended from/to information to be lost
This commit is contained in:
parent
590df29839
commit
14f97b2b4a
@ -404,9 +404,11 @@ class emailadmin_script {
|
|||||||
$message = $vacation['text'];
|
$message = $vacation['text'];
|
||||||
if ($vacation['start_date'] || $vacation['end_date'])
|
if ($vacation['start_date'] || $vacation['end_date'])
|
||||||
{
|
{
|
||||||
|
$format_date = 'd M Y'; // see to it, that there is always a format, because if it is missing - no date will be output
|
||||||
|
if (!empty($GLOBALS['egw_info']['user']['preferences']['common']['dateformat'])) $format_date = $GLOBALS['egw_info']['user']['preferences']['common']['dateformat'];
|
||||||
$message = str_replace(array('$$start$$','$$end$$'),array(
|
$message = str_replace(array('$$start$$','$$end$$'),array(
|
||||||
date($GLOBALS['egw_info']['user']['preferences']['common']['dateformat'],$vacation['start_date']),
|
date($format_date,$vacation['start_date']),
|
||||||
date($GLOBALS['egw_info']['user']['preferences']['common']['dateformat'],$vacation['end_date']),
|
date($format_date,$vacation['end_date']),
|
||||||
),$message);
|
),$message);
|
||||||
}
|
}
|
||||||
$newscriptbody .= "] text:\n" . $message . "\n.\n;\n\n";
|
$newscriptbody .= "] text:\n" . $message . "\n.\n;\n\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user