From 51ae7f23427c6059b84ec48e9c73c46633ef1e30 Mon Sep 17 00:00:00 2001 From: Konstantin Protzen Date: Thu, 7 Dec 2023 22:18:12 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20year=20table=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings/export_grades.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings/export_grades.php b/settings/export_grades.php index 5816e40..e43231e 100644 --- a/settings/export_grades.php +++ b/settings/export_grades.php @@ -37,7 +37,7 @@ } // Get year title -if ($stmt = $con->prepare("SELECT name FROM " . $config["db"]["tables"]["accounts"] . " WHERE id = ?")) { +if ($stmt = $con->prepare("SELECT name FROM " . $config["db"]["tables"]["years"] . " WHERE id = ?")) { $stmt->bind_param("s", $_SESSION["setting_year"]); $stmt->execute(); $stmt->bind_result($year_name);