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

Commit

Permalink
Merge pull request #55 from noten-app/Fix-#54---Exporting-grades-does…
Browse files Browse the repository at this point in the history
…n't-work

🐛 Fix year table name
  • Loading branch information
CuzImBisonratte authored Dec 7, 2023
2 parents 1a94d2b + 51ae7f2 commit 2570821
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 2570821

Please sign in to comment.