[svn r9945] coding standards and __LINE__ and __FILE__ fix

skala
Patrick Cool 19 years ago
parent 6513566fda
commit 3e507fd587
  1. 14
      main/exercice/addlimits.php

@ -196,27 +196,25 @@ if (isset($_POST['ok']))
{
$minutes = $_POST['minutes'];
$query = "update `".$TBL_EXERCICES."` set ques_time_limit= $minutes where id= $exercise_id";
api_sql_query($query,_FILE_,_LINE_);
api_sql_query($query,__FILE__,__LINE__);
}
else
{
$query = "update `".$TBL_EXERCICES."` set ques_time_limit= 0 where id= $exercise_id";
api_sql_query($query,_FILE_,_LINE_);
api_sql_query($query,__FILE__,__LINE__);
}
if ($_POST['attempt']==1)
{
$attempts = $_POST['attempts'];
$query = "update `".$TBL_EXERCICES."` set num_attempts = $attempts where id= $exercise_id";
api_sql_query($query,_FILE_,_LINE_);
api_sql_query($query,__FILE__,__LINE__);
}
else
{
$query = "update`".$TBL_EXERCICES."` set num_attempts = 0 where id= $exercise_id";
api_sql_query($query,_FILE_,_LINE_);
api_sql_query($query,__FILE__,__LINE__);
}
}
?>

Loading…
Cancel
Save