summaryrefslogtreecommitdiffhomepage
path: root/themes
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2012-10-02 15:19:23 +0000
committerDaniel Golle <daniel@makrotopia.org>2012-10-02 15:19:23 +0000
commit9939dd2f72f42e547b6ad4cd3c9c068516fa0113 (patch)
tree5665528868a4ed2d11cbad2a57dd5671ca3b7909 /themes
parent1d9cd49387840bde99e4ffc779d46d0156f9b6b3 (diff)
themes/openwrt.org: use ~= instead of not ( ... == ... )
Diffstat (limited to 'themes')
-rw-r--r--themes/openwrt/luasrc/view/themes/openwrt.org/header.htm2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/openwrt/luasrc/view/themes/openwrt.org/header.htm b/themes/openwrt/luasrc/view/themes/openwrt.org/header.htm
index 2366d4f27..9f8595976 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
</div>
</noscript>
- <%- 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 -%>
<div class="errorbox">
<strong><%:No password set!%></strong><br />
<%:There is no password set on this router. Please configure a root password to protect the web interface and enable SSH.%><br />