diff --git a/resources/functions.php b/resources/functions.php index 23f9ce821e..c0425de69e 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -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;