]> git.mxchange.org Git - mailer.git/blobdiff - inc/xml-functions.php
Protection for all DOCS directories
[mailer.git] / inc / xml-functions.php
index 2a11ccc4b72ebcfc413fd323abf9af4262614a4c..e180a49fe9fdd69b9db9de59117d45cb569ca71a 100644 (file)
@@ -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;