Skip to content

Commit

Permalink
Fix Prefixe table
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeDevome committed Dec 15, 2024
1 parent 9bad522 commit abdba47
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions admin/controleurs/admin_book_room.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,14 @@
$multisite = Settings::get("module_multisite") == "Oui";
if($multisite)
$sql = "SELECT r.id,room_name,area_name,sitename
FROM ((`grr_room` r JOIN `grr_area` a ON r.area_id = a.id)
JOIN grr_j_site_area ON a.id = id_area)
JOIN grr_site s ON s.id = id_site
FROM ((`".TABLE_PREFIX."_room` r JOIN `".TABLE_PREFIX."_area` a ON r.area_id = a.id)
JOIN ".TABLE_PREFIX."_j_site_area ON a.id = id_area)
JOIN ".TABLE_PREFIX."_site s ON s.id = id_site
WHERE r.who_can_book = 0
ORDER BY room_name";
else
$sql = "SELECT r.id,room_name,area_name
FROM `grr_room` r JOIN `grr_area` a ON r.area_id = a.id
FROM `".TABLE_PREFIX."_room` r JOIN `".TABLE_PREFIX."_area` a ON r.area_id = a.id
WHERE r.who_can_book = 0
ORDER BY room_name";
$res = grr_sql_query($sql);
Expand Down

0 comments on commit abdba47

Please sign in to comment.