Index: src/system/core/ContentView.inc.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- src/system/core/ContentView.inc.php (revision 70c4faa12acc32f0ce0b1aa503bd915108cf2e69) +++ src/system/core/ContentView.inc.php (revision ) @@ -292,6 +292,8 @@ public function build_html($p_content_data_array = false, $p_template_file = false) { + $t_html_output = ''; + $this->before_build_html(); $this->init_smarty(); @@ -350,7 +352,14 @@ $t_full_template_path = $this->v_template_dir . $t_template_file; $t_cache_id = $this->get_cache_id(); + + if(file_exists($t_full_template_path)) + { - $t_html_output = $this->v_coo_smarty->fetch($t_full_template_path, $t_cache_id); + $t_html_output = $this->v_coo_smarty->fetch($t_full_template_path, $t_cache_id); + } + else { + trigger_error('t_template_file does not exist: '.$t_full_template_path, E_USER_NOTICE); + } # insert session_ids $t_html_output = $this->replace_session_id_placeholder($t_html_output); \ No newline at end of file