mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-09 01:25:22 +01:00
Only log invalid date values when there's a value to log
This commit is contained in:
parent
5680224346
commit
95019464bd
@ -133,8 +133,11 @@ class Date extends Transformer
|
||||
}
|
||||
catch (\Exception $e) {
|
||||
// do NOT stall for somehow invalid values: log it and return empty
|
||||
$e->details = $this->id.': '.json_encode($value);
|
||||
_egw_log_exception($e);
|
||||
if($value)
|
||||
{
|
||||
$e->details = $this->id . ': ' . json_encode($value);
|
||||
_egw_log_exception($e);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user