If no data then show simple message "LearnpathPrereqNotCompleted"

BT#5776
pull/2483/head
jmontoyaa 8 years ago
parent 553b10aba8
commit a547f60ec2
  1. 6
      main/inc/ajax/lp.ajax.php

@ -324,7 +324,11 @@ switch ($action) {
if ($result) {
echo '1';
} else {
echo $lp->error;
if (!empty($lp->error)) {
echo $lp->error;
} else {
echo get_lang('LearnpathPrereqNotCompleted');
}
}
$lp->error = '';
exit;

Loading…
Cancel
Save