// Do only process valid arrays
if (!isset($modArray['module'])) {
- // We should fix this!
- debug_report_bug(__FILE__, __LINE__, 'modArray=<pre>'.print_r($modArray, true).'</pre>');
+ // Try to remove the cache file
+ $GLOBALS['cache_instance']->removeCacheFile();
+
+ // We should fix this
+ debug_report_bug(__FILE__, __LINE__, 'modArray=<pre>' . print_r($modArray, true) . '</pre>Please try to reload to fix this.');
} // END - if
// Rewrite some parts
// Load cache
$GLOBALS['cache_array']['points_data'] = $GLOBALS['cache_instance']->getArrayFromCache();
+ // Do we have cache?
+ if (!isset($GLOBALS['cache_array']['points_data']['subject'])) {
+ // Try to remove the cache file
+ $GLOBALS['cache_instance']->removeCacheFile();
+
+ // Not found, so better abort here
+ debug_report_bug(__FILE__, __LINE__, 'points_data has been generated, but does not contain "subject". Please try to reload to fix this.');
+ } // END - if
+
// Init temporary array
$pointsData = array();
// Set the array back and remove temporary
$GLOBALS['cache_array']['points_data'] = $pointsData;
unset($pointsData);
-} elseif (isHtmlOutputMode()) {
+} elseif ((isHtmlOutputMode()) && (isExtensionInstalledAndNewer('sql_patches', '0.8.0'))) {
// Create cache file
$GLOBALS['cache_instance']->init();