liquid_feedback_frontend
diff app/main/index/index.lua @ 1694:bca6a066d429
Fixed area without unit in single_unit mode
author | bsw |
---|---|
date | Thu Sep 23 14:29:39 2021 +0200 (2021-09-23) |
parents | cbce4491c93e |
children | 97ff2a26c84e |
line diff
1.1 --- a/app/main/index/index.lua Wed Sep 22 18:28:37 2021 +0200 1.2 +++ b/app/main/index/index.lua Thu Sep 23 14:29:39 2021 +0200 1.3 @@ -26,7 +26,7 @@ 1.4 1.5 if area_id then 1.6 area = Area:by_id(area_id) 1.7 - if not area or area.unit_id ~= unit.id then 1.8 + if not area or unit and area.unit_id ~= unit.id then 1.9 execute.view { module = "index", view = "404" } 1.10 request.set_status("404 Not Found") 1.11 return