Fix Call Recordings single delete.

This commit is contained in:
Nate
2019-09-19 12:31:36 -06:00
parent 675c05329f
commit 81bf68cf68
3 changed files with 71 additions and 6 deletions

View File

@@ -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;
}
}