X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fwrapper-functions.php;h=191b6164cac929610548a35e7c06891e0eb25a78;hb=382df1e8685f2307b00724668e8cb66cb72500d8;hp=c5aea2d344f62861eb17bf735393416d712a1649;hpb=1aaf0b403e3ce69bc9868613fb156f9a4f2c6a74;p=mailer.git 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);