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 #36 from noten-app/Hotfix-hardcoded-value
Browse files Browse the repository at this point in the history
Update index.php
  • Loading branch information
CuzImBisonratte authored Nov 22, 2023
2 parents 5f79b46 + 8a7819b commit bdabd75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions subjects/grades/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
if (mysqli_connect_errno()) exit("Error with the Database");

// Get subject
if ($stmt = $con->prepare('SELECT name, color, user_id, last_used, grade_k, grade_m, grade_t, grade_s FROM subjects WHERE id = ?')) {
if ($stmt = $con->prepare('SELECT name, color, user_id, last_used, grade_k, grade_m, grade_t, grade_s FROM '.$config["db"]["tables"]["subjects"].' WHERE id = ?')) {
$stmt->bind_param('s', $subject_id);
$stmt->execute();
$stmt->store_result();
Expand Down Expand Up @@ -249,4 +249,4 @@
<?php if ($config["tracking"]["matomo"]["on"]) echo ($config["tracking"]["matomo"]["code"]); ?>
</body>

</html>
</html>

0 comments on commit bdabd75

Please sign in to comment.