diff --git a/admin/controleurs/admin_book_room.php b/admin/controleurs/admin_book_room.php index 8897b1c9..2ba16621 100644 --- a/admin/controleurs/admin_book_room.php +++ b/admin/controleurs/admin_book_room.php @@ -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);