# HG changeset patch # User bsw # Date 1460966331 -7200 # Node ID 6154987e354533611885b6008155bcb847ff0ef4 # Parent a501cdd10fbb45e18efe5afe386cd70367101766 Fixed operator precedence diff -r a501cdd10fbb -r 6154987e3545 app/main/member/settings_notification.lua --- a/app/main/member/settings_notification.lua Mon Apr 18 09:57:49 2016 +0200 +++ b/app/main/member/settings_notification.lua Mon Apr 18 09:58:51 2016 +0200 @@ -59,7 +59,7 @@ attr = { id = "digest_on", type = "radio", name = "digest", value = "true", - checked = app.session.member.disable_notifications or app.session.member.notification_hour ~= nil and "checked" or nil, + checked = (app.session.member.disable_notifications or app.session.member.notification_hour ~= nil) and "checked" or nil, onchange = [[ $(".view_on_digest_true")[this.checked ? "show" : "hide"](400) ]] } }