Fix judge questions

This commit is contained in:
patrick 2025-03-13 17:11:20 +00:00
parent 64d71a91e7
commit d9c2aa38e6
2 changed files with 4 additions and 4 deletions

View File

@ -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');

View File

@ -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(