Migration vers phpspreadsheet et fix nom du demandeur

This commit is contained in:
lars
2019-05-01 17:24:18 +02:00
parent c671fda638
commit 05c0b9a1af
3 changed files with 92 additions and 24 deletions

View File

@@ -149,7 +149,7 @@ die();
$query .= " AND UID=$userid";
}
if (!$result = $mysqli->query($query) ) {
echo "Table creation failed: (" . $mysqli->errno . ") " . $mysqli->error;
echo "Table read failed: (" . $mysqli->errno . ") " . $mysqli->error;
die("Argh");
}
@@ -166,6 +166,8 @@ die();
header("location: accred_list");
die();
}
// Retrieve the name of the original requestor
$reqName = $row['name'];
}
// instantiate a Zebra_Form object
$form = new Zebra_Form('form');
@@ -176,7 +178,7 @@ die();
$forWho = $_SESSION['name'];
}
else {
$ti = 'Commande par '.$_SESSION['name'] . ', créée le '.$row['created'];
$ti = 'Commande par '.$reqName. ', créée le '.$row['created'];
$forWho = $ar['demande_pour'];
}
if($isAdmin) {