diff --git a/plugins/libcalendaring/libcalendaring.php b/plugins/libcalendaring/libcalendaring.php index e2de7f2f..a87461e6 100644 --- a/plugins/libcalendaring/libcalendaring.php +++ b/plugins/libcalendaring/libcalendaring.php @@ -1545,6 +1545,10 @@ class libcalendaring extends rcube_plugin */ public static function to_php_date_format($from) { + if (!is_string($from)) { + return ''; + } + // "dd.MM.yyyy HH:mm:ss" => "d.m.Y H:i:s" return strtr(strtr($from, array( 'YYYY' => 'Y', @@ -1581,6 +1585,10 @@ class libcalendaring extends rcube_plugin */ public static function from_php_date_format($from) { + if (!is_string($from)) { + return ''; + } + // "d.m.Y H:i:s" => "dd.MM.yyyy HH:mm:ss" return strtr($from, array( 'y' => 'YY',