Voicemail [Class]: Update for PHP 8.1

This commit is contained in:
fusionate
2023-06-27 22:22:30 +00:00
parent a034fbe08b
commit 5bce5b103b

View File

@@ -466,7 +466,7 @@
}
//delete the checked rows
if (is_array($array) && @sizeof($array) != 0) {
if (!empty($array) && is_array($array) && @sizeof($array) != 0) {
//grant temporary permissions
$p = new permissions;
$p->add('voicemail_destination_delete', 'temp');