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.');
}
// 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.');
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) {
// Is it there?
if (!function_exists($callbackName)) {
+ // No, then please add it
reportBug(__FUNCTION__, __LINE__, 'callback=' . $callback . ',function=' . $function . 'arguments()=' . count($GLOBALS['__XML_ARGUMENTS'][$callback]) . ' - execute call-back does not exist.');
} // END - if
// 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;
// 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'] . '.';