forked from science-ation/science-ation
Fix judge questions
This commit is contained in:
parent
64d71a91e7
commit
d9c2aa38e6
@ -82,7 +82,7 @@ switch (get_value_from_array($_GET, 'action')) {
|
||||
|
||||
user_save($u);
|
||||
|
||||
if($POST['questions'])
|
||||
if($_POST['questions'])
|
||||
questions_save_answers('judgereg', $u['id'], $_POST['questions']);
|
||||
|
||||
happy_('Preferences successfully saved');
|
||||
|
@ -268,9 +268,9 @@ function questions_editor($section, $year, $array_name, $self)
|
||||
$q->execute([$_GET['impyear']]);
|
||||
while ($r = $q->fetch(PDO::FETCH_OBJ)) {
|
||||
$x++;
|
||||
$stmt = $pdo->prepare("INSERT INTO questions (id,year,section,db_heading,question,type,required,ord)
|
||||
\t\t\t\t\t\t\t\t\tVALUES (?,?,?,?,?,?,?)");
|
||||
$stmt->execute([$year, $r->section, $r->question, $r->type, $r->required, $r->ord]);
|
||||
$stmt = $pdo->prepare("INSERT INTO questions (year,section,db_heading,question,type,required,ord)
|
||||
VALUES (?,?,?,?,?,?,?)");
|
||||
$stmt->execute([$year, $r->section, $r->db_heading, $r->question, $r->type, $r->required, $r->ord]);
|
||||
}
|
||||
|
||||
echo happy(i18n(
|
||||
|
Loading…
x
Reference in New Issue
Block a user