1
0
mirror of synced 2025-12-27 16:13:26 +00:00

fix(homepage) miss removing previous fix

This commit is contained in:
Valentin
2024-06-22 21:25:48 +02:00
parent db71adc9f2
commit dce7330f73

View File

@@ -12,8 +12,8 @@ function getStopName($stopId) {
function getFavorites($lineId) {
global $conn;
try {
$query = $conn->prepare("SELECT stopId FROM favorites WHERE lineId = ?");
$query->execute([$lineId]);
$query = $conn->prepare("SELECT stopId FROM favorites WHERE lineId = ? AND userId = ?");
$query->execute([$lineId, $_SESSION['user_id']]);
$result = $query->fetchAll(PDO::FETCH_ASSOC);
return $result;