Merge f289dffc488bc8890ca1bf63b67ad265c28b178a into 2bde0b40bb417fafbbb39a1055e268f9cb075822

This commit is contained in:
vexyl 2013-09-30 20:47:07 -07:00
commit d3eea23147

View File

@ -304,7 +304,11 @@ int16 Database::CheckStatus(uint32 account_id)
int16 status = atoi(row[0]);
int32 suspendeduntil = atoi(row[1]);
int32 suspendeduntil = 0;
// MariaDB initalizes with NULL if unix_timestamp() is out of range
if (row[1] != NULL) {
suspendeduntil = atoi(row[1]);
}
int32 current = atoi(row[2]);