]> git.mxchange.org Git - mailer.git/blobdiff - inc/xml-functions.php
Added note for entering alternative prefix
[mailer.git] / inc / xml-functions.php
index 2a11ccc4b72ebcfc413fd323abf9af4262614a4c..d31c992014f3966a9d4ad71afd88503b38a40916 100644 (file)
@@ -232,13 +232,13 @@ 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
 
        // @TODO Handle characters
-       die(__FUNCTION__ . ':characters[]='.strlen($characters));
+       die(__FUNCTION__ . ':characters[' . gettype($characters) . ']=' . strlen($characters));
 }
 
 // Checks if given type is valid, makes all lower-case
@@ -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;