mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Modules [Class]: Updates for PHP 8.1
This commit is contained in:
@@ -741,7 +741,7 @@ if (!class_exists('modules')) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (is_array($array) && @sizeof($array) != 0) {
|
||||
if (!empty($array) && is_array($array) && @sizeof($array) != 0) {
|
||||
//grant temporary permissions
|
||||
$p = new permissions;
|
||||
$p->add('module_add', 'temp');
|
||||
|
||||
Reference in New Issue
Block a user