ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject incubator-ponymail git commit: Wrong check - we don't want to skip remove if null comes first
Date Sun, 18 Dec 2016 02:21:57 GMT
Repository: incubator-ponymail
Updated Branches:
  refs/heads/master 00bd1ae2c -> ade18f4a5


Wrong check - we don't want to skip remove if null comes first

Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/ade18f4a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/ade18f4a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/ade18f4a

Branch: refs/heads/master
Commit: ade18f4a52b886c22c00b3fd5691a457e4397b9c
Parents: 00bd1ae
Author: Sebb <sebb@apache.org>
Authored: Sun Dec 18 02:21:49 2016 +0000
Committer: Sebb <sebb@apache.org>
Committed: Sun Dec 18 02:21:49 2016 +0000

----------------------------------------------------------------------
 site/api/preferences.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/ade18f4a/site/api/preferences.lua
----------------------------------------------------------------------
diff --git a/site/api/preferences.lua b/site/api/preferences.lua
index 38fa3ca..da1d944 100644
--- a/site/api/preferences.lua
+++ b/site/api/preferences.lua
@@ -150,7 +150,7 @@ Pony Mail - Email for Ponies and People.
     if get.removealt and account and account.credentials.altemail then
         for k, v in pairs(account.credentials.altemail) do
             -- allow for null just in case table was corrupted
-            if v == JSON.null or v.email == get.removealt then
+            if v and not (v == JSON.null) and v.email == get.removealt then
                 table.remove(account.credentials.altemail, k)
                 break
             end


Mime
View raw message