Fix query see BT#13439

pull/2487/head
jmontoyaa 7 years ago
parent 3bb8c1e057
commit 25e289e8db
  1. 6
      main/inc/lib/exercise.lib.php

@ -2693,11 +2693,10 @@ EOT;
'order' => 'title'
);
} else {
if ($session_id == 0) {
if (empty($session_id)) {
$conditions = array(
'where' => array(
$active_sql.' session_id = ? AND c_id = ? '.$needle_where.$time_conditions => array(
$session_id,
$active_sql.' (session_id = 0 OR session_id IS NULL) AND c_id = ? '.$needle_where.$time_conditions => array(
$course_id,
$needle
)
@ -2719,7 +2718,6 @@ EOT;
}
$table = Database::get_course_table(TABLE_QUIZ_TEST);
return Database::select('*', $table, $conditions);
}

Loading…
Cancel
Save