Commit 78221f9c authored by Ewald's avatar Ewald
Browse files

corrected error concerning number of questions

parent 82c4148d
......@@ -366,7 +366,6 @@ switch($menu_mode) {
}
if (!empty($subject_id)) {
// insert new subject
//$tsubset_quantity = ($tsubset_quantity < 999 ? $tsubset_quantity : $numofrows);
$nmax = ($alldifficulties == true ? 9 : 1);
$tquanorig = $tsubset_quantity;
for ($n=1; $n <= $nmax; $n++) {
......@@ -377,7 +376,7 @@ switch($menu_mode) {
$sqlq2 .= ' AND question_difficulty='.$n;
if ($tsubset_quantity < 999) {
if (K_DATABASE_TYPE == 'ORACLE') {
$sqlq2 = 'SELECT * FROM ('.$sqlq2.') WHERE rownum <= '.$tsubset_quantity.'';
$sqlq2 = 'SELECT * FROM ('.$sqlq2.') WHERE rownum <= '.$tquan.'';
} else {
$sqlq2 .= ' LIMIT '.$tquan.'';
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment