diff --git a/Smarty.class.php b/Smarty.class.php index edf9cc10..77e594ad 100644 --- a/Smarty.class.php +++ b/Smarty.class.php @@ -1263,9 +1263,13 @@ function _generate_debug_output() { $this->_conf_obj->set_path = $_config_dir; } if($_config_vars = $this->_conf_obj->get($file, $section)) { - $this->_write_file($_compile_file, - '', - true); + + if(function_exists('var_export')) { + $_compile_data = ''; + } else { + $_compile_data = ''; + } + $this->_write_file($_compile_file, $_compile_data, true); touch($_compile_file,filemtime($_file_path)); } } diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index edf9cc10..77e594ad 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -1263,9 +1263,13 @@ function _generate_debug_output() { $this->_conf_obj->set_path = $_config_dir; } if($_config_vars = $this->_conf_obj->get($file, $section)) { - $this->_write_file($_compile_file, - '', - true); + + if(function_exists('var_export')) { + $_compile_data = ''; + } else { + $_compile_data = ''; + } + $this->_write_file($_compile_file, $_compile_data, true); touch($_compile_file,filemtime($_file_path)); } }