skala
jmontoya 17 years ago
commit 4674289340
  1. 4
      main/exercice/exercise_submit_modal.php

@ -27,7 +27,7 @@ if ( empty ( $exerciseResult ) ) {
} }
if (empty($exerciseResultCoordinates)) { if (empty($exerciseResultCoordinates)) {
$exerciseResultCoordinates = $_REQUEST['exerciseResultCoordinates']; //$exerciseResultCoordinates = $_REQUEST['exerciseResultCoordinates'];
} }
if (empty($origin)) { if (empty($origin)) {
$origin = Security::remove_XSS($_REQUEST['origin']); $origin = Security::remove_XSS($_REQUEST['origin']);
@ -53,7 +53,7 @@ if (is_array($coords) && count($coords)>0){
$user_array = substr($user_array,0,-1); $user_array = substr($user_array,0,-1);
if (isset( $_GET['choice'])){ if (isset( $_GET['choice'])){
$choice_value = $_GET['choice']; $choice_value = intval($_GET['choice']);
} }
// getting the options by js // getting the options by js
if (empty($choice_value)) { if (empty($choice_value)) {

Loading…
Cancel
Save