diff options
author | Daniel Golle <daniel@makrotopia.org> | 2012-10-02 13:52:24 +0000 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2012-10-02 13:52:24 +0000 |
commit | 97470c05f6e4c6b5c5bae5949461971d029cc0b8 (patch) | |
tree | 9b252083dc3c5fb563ffeb97cd39131cae2af10d /themes | |
parent | 631b80911b86d7265b71535e19bfe228481e02bf (diff) |
themes/openwrt.org: add missing parentheses
r9311 introduced a bug which made the "password not set" warning disappear
in all cases instead of just the intended ones. Now fixed.
Diffstat (limited to 'themes')
-rw-r--r-- | themes/openwrt/luasrc/view/themes/openwrt.org/header.htm | 2 |
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 8b29ecfa2..4bf34e82b 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 /> |