aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_storage_xep0227.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_storage_xep0227.lua')
-rw-r--r--plugins/mod_storage_xep0227.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_storage_xep0227.lua b/plugins/mod_storage_xep0227.lua
index 1676341b..3cd783bc 100644
--- a/plugins/mod_storage_xep0227.lua
+++ b/plugins/mod_storage_xep0227.lua
@@ -160,7 +160,7 @@ handlers.vcard = {
local usere = xml and getUserElement(xml);
if usere then
usere:remove_children("vCard", "vcard-temp");
- if not data then
+ if not data or not data.attr then
-- No data to set, old one deleted, success
return true;
end