altra piccola modifica

This commit is contained in:
2025-09-11 09:58:22 +02:00
parent 9c044b051c
commit fff1e6cddf

View File

@@ -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;
}