X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fwrapper-functions.php;h=191b6164cac929610548a35e7c06891e0eb25a78;hp=c5aea2d344f62861eb17bf735393416d712a1649;hb=5eb7669649ebf60e74a83df70ad4f357d656b204;hpb=33a76a20bc94ffe95e9f13906eb7dc5cf354948d diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index c5aea2d344..191b6164ca 100644 --- a/inc/wrapper-functions.php +++ b/inc/wrapper-functions.php @@ -3491,9 +3491,9 @@ function translateFullComma ($dotted) { // Wrapper to check if the first element to be shifted is set to given value function shift_array (&$array, $value, $key = '0') { // Is the element set and value matches? - assert(is_array($array), 'array[]=' . gettype($array), ',expected: array'); - assert(isset($array[$key]), 'array[' . $key . '] not set.'); - assert(($array[$key] === $value), ',array[' . $key . ']=' . $array[$key] . ',value=' . $value); + assert(is_array($array)); + assert(isset($array[$key])); + assert($array[$key] === $value); // Shift it array_shift($array);