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:
parent
378d6b2481
commit
ad06af0924
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue