diff options
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);
|