summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/UserInfoEx/src/ex_import/classExImContactXML.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/UserInfoEx/src/ex_import/classExImContactXML.cpp b/plugins/UserInfoEx/src/ex_import/classExImContactXML.cpp
index 33faddebfe..e26522981f 100644
--- a/plugins/UserInfoEx/src/ex_import/classExImContactXML.cpp
+++ b/plugins/UserInfoEx/src/ex_import/classExImContactXML.cpp
@@ -109,9 +109,9 @@ TiXmlElement *CExImContactXML::CreateXmlElement()
_xmlDoc.InsertEndChild(_xmlWriter = _xmlDoc.NewElement(XKEY_CONTACT));
LPSTR pszUID = uid2String(TRUE);
- _xmlWriter->SetAttribute("ampro", _pszAMPro);
_xmlWriter->SetAttribute("proto", _pszProto);
+ if (_pszAMPro) _xmlWriter->SetAttribute("ampro", _pszAMPro);
if (_pszDisp) _xmlWriter->SetAttribute("disp", _pszDisp);
if (_pszNick) _xmlWriter->SetAttribute("nick", _pszNick);
if (_pszGroup) _xmlWriter->SetAttribute("group", _pszGroup);