X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fxml-functions.php;h=e180a49fe9fdd69b9db9de59117d45cb569ca71a;hb=46634b1a5b92119c355e59d0d527a8493e51c133;hp=2a11ccc4b72ebcfc413fd323abf9af4262614a4c;hpb=7052cc3bd3ca07281078acbbce6ce595d753def1;p=mailer.git diff --git a/inc/xml-functions.php b/inc/xml-functions.php index 2a11ccc4b7..e180a49fe9 100644 --- a/inc/xml-functions.php +++ b/inc/xml-functions.php @@ -232,7 +232,7 @@ function xmlCharacterHandler ($resource, $characters) { $characters = trim($characters); // Are there some to handle? - if (strlen($characters) == 0) { + if (empty($characters)) { // Nothing to handle return; } // END - if @@ -329,6 +329,7 @@ function searchXmlArray ($value, $columns, $childKey) { 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]); if ($columnArray[$childKey] === $value) { // Remember this match $return = $key;