소스 검색

[svn r15808] it was missing validation at line 445

Yannick Warnier 16 년 전
부모
커밋
0642f8eec1
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      main/exercice/exercice_submit.php

+ 2 - 2
main/exercice/exercice_submit.php

@@ -37,7 +37,7 @@
 *	@package dokeos.exercise
 * 	@author Olivier Brouckaert
 * 	@author Julio Montoya multiple fill in blank option added
-* 	@version $Id: exercice_submit.php 15802 2008-07-17 04:52:13Z yannoo $
+* 	@version $Id: exercice_submit.php 15808 2008-07-17 16:07:38Z yannoo $
 */
 
 
@@ -442,7 +442,7 @@ if( $exerciseAttempts > 0 && !$is_allowed_to_edit ){
 	$aquery = api_sql_query($sql, __FILE__, __LINE__);
 	$attempt = Database::fetch_array($aquery);
 	
-	if( true ){ 
+	if( $attempt[0] > --$exerciseAttempts ){ 
 		Display::display_warning_message(sprintf(get_lang('ReachedMaxAttempts'),$exerciseTitle,$exerciseAttempts));
 	    Display::display_footer();	
 	    exit;