diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-01-01 12:49:25 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-01-01 12:49:25 +0000 |
commit | b1cfe427c418205e2163f074441a1b961810b0a3 (patch) | |
tree | 6ff8362de5a769a2d84f1bbba6859db9d1b88a9c /plugins/TipperYM | |
parent | c97742103384c452ec50f0f8607233e45956da24 (diff) |
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
Diffstat (limited to 'plugins/TipperYM')
-rw-r--r-- | plugins/TipperYM/src/translations.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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);
|