From: Roland Häder Date: Mon, 28 Jun 2010 08:09:11 +0000 (+0000) Subject: Better handling of errors X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d2e5508023052562516f3e8526814609bda4d90f;p=mailer.git Better handling of errors --- diff --git a/inc/functions.php b/inc/functions.php index 476927420c..ab3c7099da 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -3581,7 +3581,13 @@ function flushTemplateCache ($template, $eval) { // Reads a template cache function readTemplateCache ($template) { // Check it again - if ((isDebuggingTemplateCache() === false) && (isTemplateCached($template))) { + if ((isDebuggingTemplateCache()) || (!isTemplateCached($template))) { + // This should not happen + debug_report_bug('Wether debugging of template cache is enabled or template ' . $template . ' is not cached while expected.'); + } // END - if + + // Is it cached? + if (!isset($GLOBALS['template_eval'][$template])) { // Generate FQFN $FQFN = generateCacheFqfn($template);