diff options
author | Manuel Munz <freifunk@somakoma.de> | 2010-12-15 00:36:33 +0000 |
---|---|---|
committer | Manuel Munz <freifunk@somakoma.de> | 2010-12-15 00:36:33 +0000 |
commit | 406531a84c5560d1ea290bd4c6e15f47f587d303 (patch) | |
tree | eac6cc2e9c983d7239bd9d173137e8b6dfbb59ae /themes/freifunk-generic/luasrc/view | |
parent | ce53878706b8d2682a5eb04c234b0601817edd87 (diff) |
themes/freifunk-generic: Prevent crash when exectime is not set.
Diffstat (limited to 'themes/freifunk-generic/luasrc/view')
-rw-r--r-- | themes/freifunk-generic/luasrc/view/themes/freifunk-generic/footer.htm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/themes/freifunk-generic/luasrc/view/themes/freifunk-generic/footer.htm b/themes/freifunk-generic/luasrc/view/themes/freifunk-generic/footer.htm index f8f8c20110..1648562062 100644 --- a/themes/freifunk-generic/luasrc/view/themes/freifunk-generic/footer.htm +++ b/themes/freifunk-generic/luasrc/view/themes/freifunk-generic/footer.htm @@ -12,7 +12,11 @@ You may obtain a copy of the License at $Id: footer.htm 4185 2009-01-30 14:00:35Z jow $ -%> -<% local xtime = (string.format("%.2fs", os.clock() - exectime)) %> +<% local xtime +if exectime then + xtime = (string.format("%.2fs", os.clock() - exectime)) +end %> + </div> <div class="clear"></div> <div class="push"></div> @@ -20,7 +24,9 @@ $Id: footer.htm 4185 2009-01-30 14:00:35Z jow $ <div class="footer"> <p class="luci"><a href="<%=controller%>/about">Powered by <%= luci.__appname__ .. " (v" .. luci.__version__ .. ")" %></a></p> +<% if xtime then %> <p class="exectime">Script execution time: <%=xtime%></p> +<% end %> </div> </body> |