Fewo Mails / Booking Country Services
This commit is contained in:
parent
b9c26d06d0
commit
48a6eb2282
154 changed files with 7761 additions and 1643 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue