diff options
author | Ted Trask <ttrask01@yahoo.com> | 2014-03-10 00:20:22 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2014-03-10 00:20:22 +0000 |
commit | c7a4b3984140613848d090e8b4d7839e4ffcb26f (patch) | |
tree | 7065117b84d63415574cf3f62b8299c7b43dcb7d /lib | |
parent | 94cfc2629b3c78fca0b7f5e05c9673b33d7c9fe2 (diff) | |
download | acf-core-c7a4b3984140613848d090e8b4d7839e4ffcb26f.tar.bz2 acf-core-c7a4b3984140613848d090e8b4d7839e4ffcb26f.tar.xz |
Fix infinite loop in authenticator-plaintext when deleting user
Diffstat (limited to 'lib')
-rw-r--r-- | lib/authenticator-plaintext.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/authenticator-plaintext.lua b/lib/authenticator-plaintext.lua index 07a8e62..c1db54a 100644 --- a/lib/authenticator-plaintext.lua +++ b/lib/authenticator-plaintext.lua @@ -127,7 +127,9 @@ mymodule.delete_entry = function (self, tabl, field, id) if field == "" then local fields = mymodule.list_fields(self, tabl) for i,fld in ipairs(fields) do - mymodule.delete_entry(self, tabl, fld, id) + if "" ~= fld then + mymodule.delete_entry(self, tabl, fld, id) + end end end |