removed notice from {debug}

thanks to Peter Billen for pointing this one out!
This commit is contained in:
messju
2004-09-11 18:52:13 +00:00
parent 4e07584230
commit dc726ed4ff

View File

@@ -23,8 +23,8 @@
*/ */
function smarty_function_debug($params, &$smarty) function smarty_function_debug($params, &$smarty)
{ {
if($params['output']) { if (isset($params['output'])) {
$smarty->assign('_smarty_debug_output',$params['output']); $smarty->assign('_smarty_debug_output', $params['output']);
} }
require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.display_debug_console.php'); require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.display_debug_console.php');
return smarty_core_display_debug_console(null, $smarty); return smarty_core_display_debug_console(null, $smarty);