Compare commits

..

No commits in common. "d9c2aa38e6d8f835168da5cc7c38c47dd60911b0" and "ccbdcb5ae4909a3fe9e4c5db96724b21fd2f4b0b" have entirely different histories.

3 changed files with 5 additions and 5 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 (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]);
$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]);
}
echo happy(i18n(

View File

@ -132,6 +132,7 @@ show_pdo_errors_if_any($pdo);
$stmt = $pdo->prepare("DELETE FROM TC_ProjectForms WHERE ProjectID=? AND FormID=? AND `year`=?");
$stmt->execute([$r->id, $k, $CURRENT_FAIRYEAR]);
$stmt = $pdo->prepare("INSERT INTO TC_ProjectForms (`FormID`,`ProjectID`,`uploaded`,`filename`,`pages`,`dt`,`year`) VALUES (
$stmt->execute();
'$k',
'$r->id',
'1',
@ -140,7 +141,6 @@ show_pdo_errors_if_any($pdo);
NOW(),
'$CURRENT_FAIRYEAR'
)");
$stmt->execute();
}
else