Skip to content

Commit

Permalink
Add message when diagram not found.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Nov 22, 2017
1 parent 9a479b3 commit bf27dde
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions main/admin/career_diagram.php
Expand Up @@ -86,4 +86,12 @@
$html .= Career::renderDiagram($careerInfo, $graph);
$tpl->assign('content', $html);
$tpl->display_one_col_template();
} else {
api_not_allowed(
true,
Display::return_message(
sprintf(get_lang('CareerXDoesntHaveADiagram'), $careerInfo['name']),
'warning'
)
);
}

0 comments on commit bf27dde

Please sign in to comment.