From b1cfe427c418205e2163f074441a1b961810b0a3 Mon Sep 17 00:00:00 2001 From: Sergey Bolhovskoy Date: Thu, 1 Jan 2015 12:49:25 +0000 Subject: Tipper: fix for DayMonthYearToDate and DayMonthYearToAge (correct when date.year==0) git-svn-id: http://svn.miranda-ng.org/main/trunk@11712 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TipperYM/src/translations.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/TipperYM/src/translations.cpp b/plugins/TipperYM/src/translations.cpp index fa37d0cb99..a6d13cc0d1 100644 --- a/plugins/TipperYM/src/translations.cpp +++ b/plugins/TipperYM/src/translations.cpp @@ -265,7 +265,7 @@ TCHAR *DayMonthYearToDate(MCONTACT hContact, const char *szModuleName, const cha int year = 0; if (!db_get(hContact, szModuleName, szSettingName, &dbv)) { - if (GetInt(dbv, &year)) + if (GetInt(dbv, &year) && year != 0) { db_free(&dbv); @@ -313,7 +313,7 @@ TCHAR *DayMonthYearToAge(MCONTACT hContact, const char *szModuleName, const char int year = 0; if (!db_get(hContact, szModuleName, szSettingName, &dbv)) { - if (GetInt(dbv, &year)) + if (GetInt(dbv, &year) && year != 0) { db_free(&dbv); -- cgit v1.2.3