1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 06:38:00 +02:00

Display an error when news template is empty or not found.

This commit is contained in:
Cameron
2017-09-25 15:43:24 -07:00
parent 36302f0ad2
commit a0e8b86876

View File

@@ -818,8 +818,16 @@ class e_news_tree extends e_front_tree_model
return '';
}
if(is_string($template) || empty($template))
{
return "<div class='alert alert-danger'>Couldn't find template/layout with the following params: ".print_a($parms,true)."</div>";
}
$ret = array();
$tp = e107::getParser();
$start = '';
$end = '';
$param = $parms;
$param['current_action'] = 'list';
// TODO more default parameters