diff --git a/main/exercice/exercice.php b/main/exercice/exercice.php index f27583a9b6..22afa7778b 100755 --- a/main/exercice/exercice.php +++ b/main/exercice/exercice.php @@ -957,16 +957,15 @@ if ($show == 'test') { ?> <?php echo api_htmlentities(get_lang('Edit'),ENT_QUOTES,$charset); ?> - ')) return false;"><?php echo api_htmlentities(get_lang('CopyExercise'),ENT_QUOTES,$charset); ?> - ')) return false;" ><?php echo api_htmlentities(get_lang('CleanStudentResults'),ENT_QUOTES,$charset); ?> + ')) return false;"><?php echo api_htmlentities(get_lang('CopyExercise'),ENT_QUOTES,$charset); ?> + ')) return false;" ><?php echo api_htmlentities(get_lang('CleanStudentResults'),ENT_QUOTES,$charset); ?> '.api_htmlentities(get_lang('EnableResults'),ENT_QUOTES,$charset).''; - } else { - //echo ''.api_htmlentities(get_lang('DisableResults'),ENT_QUOTES,$charset).''; - } + if ($row['results_disabled']) { + //echo ''.api_htmlentities(get_lang('EnableResults'),ENT_QUOTES,$charset).''; + } else { + //echo ''.api_htmlentities(get_lang('DisableResults'),ENT_QUOTES,$charset).''; + } ?> - ')) return false;"> <?php echo api_htmlentities(get_lang('Delete'),ENT_QUOTES,$charset); ?> + ')) return false;"> <?php echo api_htmlentities(get_lang('Delete'),ENT_QUOTES,$charset); ?> validate()) { } ?>