mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
catch exception caused by wrongly formatted date, as it eg. stalls whole mail app, as we created placeholders of account for signature
This commit is contained in:
parent
4a79713ad5
commit
f1440fb9d5
@ -229,8 +229,13 @@ abstract class Merge
|
||||
case 'bday':
|
||||
if ($value)
|
||||
{
|
||||
try {
|
||||
$value = Api\DateTime::to($value, true);
|
||||
}
|
||||
catch (Exception $e) {
|
||||
unset($e); // ignore exception caused by wrongly formatted date
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'owner': case 'creator': case 'modifier':
|
||||
$value = Api\Accounts::username($value);
|
||||
|
Loading…
Reference in New Issue
Block a user