1
0
mirror of synced 2025-12-28 00:23:25 +00:00

fix(favicon) new icon

This commit is contained in:
Valentin
2024-06-22 21:19:32 +02:00
parent 9d36d93ad6
commit db71adc9f2
4 changed files with 5 additions and 3 deletions

View File

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