mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Update functions.php (#4607)
removing potential for "Warning: sizeof(): Parameter must be an array or an object that implements Countable"
This commit is contained in:
@@ -1571,8 +1571,10 @@ function number_pad($number,$n) {
|
||||
case 'up': $direction = 'keyup'; break;
|
||||
}
|
||||
//check for element exceptions
|
||||
if (sizeof($exceptions) > 0) {
|
||||
$exceptions = "!$(e.target).is('".implode(',', $exceptions)."') && ";
|
||||
if (is_array($exceptions)) {
|
||||
if (sizeof($exceptions) > 0) {
|
||||
$exceptions = "!$(e.target).is('".implode(',', $exceptions)."') && ";
|
||||
}
|
||||
}
|
||||
//quote if selector is id or class
|
||||
$subject = ($subject != 'window' && $subject != 'document') ? "'".$subject."'" : $subject;
|
||||
|
||||
Reference in New Issue
Block a user