mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-22 19:58:24 +00:00
Return blank string values for string entries that return back null
This commit is contained in:
@@ -146,13 +146,13 @@ public:
|
||||
LoginServerAdmins entry{};
|
||||
|
||||
entry.id = atoi(row[0]);
|
||||
entry.account_name = row[1];
|
||||
entry.account_password = row[2];
|
||||
entry.first_name = row[3];
|
||||
entry.last_name = row[4];
|
||||
entry.email = row[5];
|
||||
entry.registration_date = row[6];
|
||||
entry.registration_ip_address = row[7];
|
||||
entry.account_name = row[1] ? row[1] : "";
|
||||
entry.account_password = row[2] ? row[2] : "";
|
||||
entry.first_name = row[3] ? row[3] : "";
|
||||
entry.last_name = row[4] ? row[4] : "";
|
||||
entry.email = row[5] ? row[5] : "";
|
||||
entry.registration_date = row[6] ? row[6] : "";
|
||||
entry.registration_ip_address = row[7] ? row[7] : "";
|
||||
|
||||
return entry;
|
||||
}
|
||||
@@ -287,13 +287,13 @@ public:
|
||||
LoginServerAdmins entry{};
|
||||
|
||||
entry.id = atoi(row[0]);
|
||||
entry.account_name = row[1];
|
||||
entry.account_password = row[2];
|
||||
entry.first_name = row[3];
|
||||
entry.last_name = row[4];
|
||||
entry.email = row[5];
|
||||
entry.registration_date = row[6];
|
||||
entry.registration_ip_address = row[7];
|
||||
entry.account_name = row[1] ? row[1] : "";
|
||||
entry.account_password = row[2] ? row[2] : "";
|
||||
entry.first_name = row[3] ? row[3] : "";
|
||||
entry.last_name = row[4] ? row[4] : "";
|
||||
entry.email = row[5] ? row[5] : "";
|
||||
entry.registration_date = row[6] ? row[6] : "";
|
||||
entry.registration_ip_address = row[7] ? row[7] : "";
|
||||
|
||||
all_entries.push_back(entry);
|
||||
}
|
||||
@@ -319,13 +319,13 @@ public:
|
||||
LoginServerAdmins entry{};
|
||||
|
||||
entry.id = atoi(row[0]);
|
||||
entry.account_name = row[1];
|
||||
entry.account_password = row[2];
|
||||
entry.first_name = row[3];
|
||||
entry.last_name = row[4];
|
||||
entry.email = row[5];
|
||||
entry.registration_date = row[6];
|
||||
entry.registration_ip_address = row[7];
|
||||
entry.account_name = row[1] ? row[1] : "";
|
||||
entry.account_password = row[2] ? row[2] : "";
|
||||
entry.first_name = row[3] ? row[3] : "";
|
||||
entry.last_name = row[4] ? row[4] : "";
|
||||
entry.email = row[5] ? row[5] : "";
|
||||
entry.registration_date = row[6] ? row[6] : "";
|
||||
entry.registration_ip_address = row[7] ? row[7] : "";
|
||||
|
||||
all_entries.push_back(entry);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user