From 9939dd2f72f42e547b6ad4cd3c9c068516fa0113 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Tue, 2 Oct 2012 15:19:23 +0000 Subject: [PATCH] themes/openwrt.org: use ~= instead of not ( ... == ... ) --- themes/openwrt/luasrc/view/themes/openwrt.org/header.htm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/openwrt/luasrc/view/themes/openwrt.org/header.htm b/themes/openwrt/luasrc/view/themes/openwrt.org/header.htm index 2366d4f271..9f85959763 100644 --- a/themes/openwrt/luasrc/view/themes/openwrt.org/header.htm +++ b/themes/openwrt/luasrc/view/themes/openwrt.org/header.htm @@ -173,7 +173,7 @@ if tree.nodes[category] and tree.nodes[category].ucidata then - <%- if luci.sys.process.info("uid") == 0 and luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") and not ( category=="failsafe" ) then -%> + <%- if luci.sys.process.info("uid") == 0 and luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") and category ~= "failsafe" then -%>
<%:No password set!%>
<%:There is no password set on this router. Please configure a root password to protect the web interface and enable SSH.%>
-- 2.30.2