diff options
author | Manuel Munz <freifunk@somakoma.de> | 2011-11-02 10:34:04 +0000 |
---|---|---|
committer | Manuel Munz <freifunk@somakoma.de> | 2011-11-02 10:34:04 +0000 |
commit | 16c26a51547ac5ba771af73b9f3b73e7639146aa (patch) | |
tree | eb3972f3a9bbd708885c5721db695c95a8e82890 /modules | |
parent | 0ef557b15c766817ed2e9f90634153cde121205e (diff) |
modules/freifunk: Fix error on freifunk/adminindex page when running on the Development Environment
Diffstat (limited to 'modules')
-rw-r--r-- | modules/freifunk/luasrc/view/freifunk/adminindex.htm | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/freifunk/luasrc/view/freifunk/adminindex.htm b/modules/freifunk/luasrc/view/freifunk/adminindex.htm index 4eed2aa95..4fcc16ccd 100644 --- a/modules/freifunk/luasrc/view/freifunk/adminindex.htm +++ b/modules/freifunk/luasrc/view/freifunk/adminindex.htm @@ -8,6 +8,15 @@ local latitude = uci:get_first ("system", "system", "latitude") local longitude = uci:get_first ("system", "system", "longitude") local location = uci:get_first ("system", "system", "location") local basicsurl = luci.dispatcher.build_url(luci.dispatcher.context.path[1], "freifunk", "basics") +local nickname, name, mail +if not contact then + nickname, name, mail = "" +else + nickname = contact.nickname + name = contact.name + mail = contact.mail +end + luci.i18n.loadc("freifunk") %> @@ -23,7 +32,7 @@ luci.i18n.loadc("freifunk") <%end%> <p /> -<% if not (contact.nickname and contact.name and contact.mail) then%> +<% if not (nickname and name and mail) then%> <div class="error"> <%:Contact information is incomplete. Please go to%> <a href='<%=contacturl%>'><%:Contact%></a> <%:and fill out all required fields.%> <p /> |