Fewo Mails / Booking Country Services

This commit is contained in:
Kevin Adametz 2020-05-28 19:03:42 +02:00
parent b9c26d06d0
commit 48a6eb2282
154 changed files with 7761 additions and 1643 deletions

View file

@ -20,10 +20,16 @@ if (! function_exists('make_v2_url')) {
if (! function_exists('_format_date')) {
function _format_date($date, $to = 'date')
{
return \App\Services\Util::_format_date($date, $to);
return $date ? \App\Services\Util::_format_date($date, $to) : null;
}
}
if (! function_exists('_reformat_date')) {
function _reformat_date($date, $to = 'date')
{
return $date ? \App\Services\Util::_reformat_date($date, $to) : null;
}
}
if (! function_exists('array_to_json')) {
function array_to_json($value)
@ -32,7 +38,6 @@ if (! function_exists('array_to_json')) {
}
}
if (! function_exists('last_array_element')) {
function last_array_element($value)
{
@ -86,4 +91,14 @@ if (! function_exists('get_file_last_time')) {
}
return date("Ymd-i", time());
}
}
if (! function_exists('my_count')) {
function my_count($value)
{
if ($value && is_array($value)) {
return count($value);
}
return 0;
}
}