X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fxml-functions.php;h=0228d8f528cd5afe3af34844c55ae4a368080f39;hp=54b494418b6bb31f0e95492ba8c6517400660cd1;hb=5eb7669649ebf60e74a83df70ad4f357d656b204;hpb=33a76a20bc94ffe95e9f13906eb7dc5cf354948d diff --git a/inc/xml-functions.php b/inc/xml-functions.php index 54b494418b..0228d8f528 100644 --- a/inc/xml-functions.php +++ b/inc/xml-functions.php @@ -308,7 +308,7 @@ function getSqlPartFromXmlArray ($columns) { // Walk through all entries foreach ($columns as $columnArray) { // Must be an array - assert(is_array($columnArray), 'columnArray[]=' . gettype($columnArray) . ' must be an array.'); + assert(is_array($columnArray)); // Init SQL part $sqlPart = ''; @@ -462,7 +462,7 @@ function searchXmlArray ($value, $columns, $childKey) { // Walk through whole array foreach ($columns as $key => $columnArray) { // Make sure the element is there - assert(isset($columnArray[$childKey]), 'columnArray[' . $childKey . '] is not set.'); + assert(isset($columnArray[$childKey])); // Now is it what we are looking for? //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'value=' . $value . ',key=' . $key . ',childKey=' . $childKey . ',columnArray=' . $columnArray[$childKey]);