altra piccola modifica
This commit is contained in:
@@ -10,7 +10,7 @@ $hours = [
|
||||
5 => "Quinta ora<br>11:55 - 12:50",
|
||||
6 => "Sesta ora<br>12:50 - 13:50"
|
||||
];
|
||||
if ($teacher == "No Lezione") {
|
||||
if ($teacher == "No Lezione" || $teacher == "sconosciuto") {
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
@@ -23,7 +23,6 @@ $teacher = $conn->real_escape_string($_GET['teacher']);
|
||||
$res = $conn->query("SELECT DISTINCT teacher FROM subjects WHERE teacher = '$teacher' LIMIT 1");
|
||||
|
||||
if ($res->num_rows === 0) {
|
||||
// Insegnante non trovato
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
|
Reference in New Issue
Block a user