summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/VKontakte/src/misc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp
index 435e68052a..34c4ef33ac 100644
--- a/protocols/VKontakte/src/misc.cpp
+++ b/protocols/VKontakte/src/misc.cpp
@@ -992,7 +992,7 @@ CMString CVkProto::GetAttachmentDescr(const JSONNode &jnAttachments, BBCSupport
}
else if (tszType ==_T("video")) {
const JSONNode &jnVideo = jnAttach["video"];
- if (jnVideo)
+ if (!jnVideo)
continue;
CMString tszTitle(jnVideo["title"].as_mstring());
@@ -1081,7 +1081,7 @@ CMString CVkProto::GetAttachmentDescr(const JSONNode &jnAttachments, BBCSupport
else
res.AppendFormat(_T("\n\t%s: %s"), TranslateT("Image"), tszImage);
- if (tszDescription)
+ if (!tszDescription.IsEmpty())
res.AppendFormat(_T("\n\t%s"), tszDescription);
}
else if (tszType == _T("gift")) {