mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Fix Call Recordings single delete.
This commit is contained in:
@@ -149,8 +149,11 @@
|
||||
|
||||
if (!function_exists('is_uuid')) {
|
||||
function is_uuid($uuid) {
|
||||
$regex = '/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i';
|
||||
return preg_match($regex, $uuid);
|
||||
if (gettype($uuid) == 'string') {
|
||||
$regex = '/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i';
|
||||
return preg_match($regex, $uuid);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user