school id fixed

This commit is contained in:
2026-01-20 08:58:54 +01:00
parent 3fb512e713
commit 7c574649a0
5 changed files with 56 additions and 1 deletions
+2 -1
View File
@@ -9,7 +9,8 @@ if (!empty($_SESSION['school_id'])) {
$stmt_school = $pdo->prepare("SELECT name, logo FROM schools WHERE id = ?");
$stmt_school->execute([$school_id]);
$current_school = $stmt_school->fetch(PDO::FETCH_ASSOC);
echo $current_school['name'];
echo "Ciao";
if ($current_school) {
$school_display_name = $current_school['name'];