Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

🐛 Fix year table name #55

Merged
merged 1 commit into from
Dec 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion settings/export_grades.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down