mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-27 05:11:41 +02: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) {
|
catch (\Exception $e) {
|
||||||
// do NOT stall for somehow invalid values: log it and return empty
|
// do NOT stall for somehow invalid values: log it and return empty
|
||||||
|
if($value)
|
||||||
|
{
|
||||||
$e->details = $this->id . ': ' . json_encode($value);
|
$e->details = $this->id . ': ' . json_encode($value);
|
||||||
_egw_log_exception($e);
|
_egw_log_exception($e);
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user