From: Manuel Munz Date: Wed, 15 Dec 2010 00:36:33 +0000 (+0000) Subject: themes/freifunk-generic: Prevent crash when exectime is not set. X-Git-Tag: 0.10.0~280 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=406531a84c5560d1ea290bd4c6e15f47f587d303;p=oweals%2Fluci.git themes/freifunk-generic: Prevent crash when exectime is not set. --- 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 f8f8c2011..164856206 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 %> +
@@ -20,7 +24,9 @@ $Id: footer.htm 4185 2009-01-30 14:00:35Z jow $