summaryrefslogtreecommitdiff
path: root/plugins/AVS/src/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/AVS/src/utils.cpp')
-rw-r--r--plugins/AVS/src/utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/AVS/src/utils.cpp b/plugins/AVS/src/utils.cpp
index 721d93282e..2565b6cad7 100644
--- a/plugins/AVS/src/utils.cpp
+++ b/plugins/AVS/src/utils.cpp
@@ -508,8 +508,8 @@ protoPicCacheEntry *GetProtoDefaultAvatar(MCONTACT hContact)
MCONTACT GetContactThatHaveTheAvatar(MCONTACT hContact, int locked)
{
- if (g_MetaAvail && db_get_b(NULL, g_szMetaName, "Enabled", 0)) {
- if (db_get_dw(hContact, g_szMetaName, "NumContacts", 0) >= 1) {
+ if (db_get_b(NULL, META_PROTO, "Enabled", 0)) {
+ if (db_get_dw(hContact, META_PROTO, "NumContacts", 0) >= 1) {
if (locked == -1)
locked = db_get_b(hContact, "ContactPhoto", "Locked", 0);