Rewrote 'we' word a little, rewrote mail order to use SQL_INSERTID() instead of anoth...
[mailer.git] / inc / xml-functions.php
index 10c3d95e96d9e27956c9ef3d8ff14b596cedeec5..c3cfa51b0be8109eeb207bdbfd813cd1462c698b 100644 (file)
@@ -94,7 +94,7 @@ function addXmlSpecialElements ($template) {
        if (function_exists($FQCN)) {
                // Call it
                call_user_func($FQCN);
-       } else {
+       } elseif (isDebugModeEnabled()) {
                // This callback function is only optional
                logDebugMessage(__FUNCTION__, __LINE__, 'Call-back function ' . $FQCN . ' for template ' . $template . ' does not exist.');
        }
@@ -102,7 +102,7 @@ function addXmlSpecialElements ($template) {
 
 // Parses the XML content
 function parseXmlData ($content) {
-       // Do we have recode?
+       // Is there recode?
        if (!function_exists('recode')) {
                // No fallback ATM
                reportBug('PHP extension recode is missing. Please install it.');
@@ -139,7 +139,7 @@ function parseXmlData ($content) {
 function doCallXmlCallbackFunction () {
        // Loop through all added entries
        foreach ($GLOBALS['__XML_CALLBACKS']['callbacks'] as $callback) {
-               // Do we have the entry?
+               // Is there the entry?
                if ((isset($GLOBALS['__XML_CALLBACKS']['functions'][$callback])) && (isset($GLOBALS['__XML_ARGUMENTS'][$callback]))) {
                        // Run all function callbacks
                        foreach ($GLOBALS['__XML_CALLBACKS']['functions'][$callback] as $function) {
@@ -200,7 +200,7 @@ function xmlCharacterHandler ($resource, $characters) {
        // Trim spaces away
        $characters = trim($characters);
 
-       // Do we have some to handle?
+       // Are there some to handle?
        if (strlen($characters) == 0) {
                // Nothing to handle
                return;
@@ -273,7 +273,7 @@ function getSqlPartFromXmlArray ($columns) {
                // Init SQL part
                $sqlPart = '';
 
-               // Do we have a table/alias
+               // Is there a table/alias
                if (!empty($columnArray['table'])) {
                        // Pre-add it
                        $sqlPart .= $columnArray['table'] . '.';