luci-base: dispatcher: fix null access on dispatching unknown urls
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
34b682afac
commit
4d28c390ab
1 changed files with 3 additions and 1 deletions
|
@ -918,7 +918,9 @@ function dispatch(request)
|
|||
return
|
||||
end
|
||||
|
||||
page.readonly = not perm
|
||||
if page then
|
||||
page.readonly = not perm
|
||||
end
|
||||
end
|
||||
|
||||
local action = (page and type(page.action) == "table") and page.action or {}
|
||||
|
|
Loading…
Reference in a new issue