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:
Ralf Becker 2016-06-06 10:09:05 +02:00
parent 4a79713ad5
commit f1440fb9d5

View File

@ -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);