Return blank string values for string entries that return back null

This commit is contained in:
Akkadius
2020-04-04 04:48:46 -05:00
parent 15c9b64120
commit fe7e850a04
97 changed files with 788 additions and 790 deletions
+15 -15
View File
@@ -149,14 +149,14 @@ public:
Guilds entry{};
entry.id = atoi(row[0]);
entry.name = row[1];
entry.name = row[1] ? row[1] : "";
entry.leader = atoi(row[2]);
entry.minstatus = atoi(row[3]);
entry.motd = row[4];
entry.motd = row[4] ? row[4] : "";
entry.tribute = atoi(row[5]);
entry.motd_setter = row[6];
entry.channel = row[7];
entry.url = row[8];
entry.motd_setter = row[6] ? row[6] : "";
entry.channel = row[7] ? row[7] : "";
entry.url = row[8] ? row[8] : "";
return entry;
}
@@ -294,14 +294,14 @@ public:
Guilds entry{};
entry.id = atoi(row[0]);
entry.name = row[1];
entry.name = row[1] ? row[1] : "";
entry.leader = atoi(row[2]);
entry.minstatus = atoi(row[3]);
entry.motd = row[4];
entry.motd = row[4] ? row[4] : "";
entry.tribute = atoi(row[5]);
entry.motd_setter = row[6];
entry.channel = row[7];
entry.url = row[8];
entry.motd_setter = row[6] ? row[6] : "";
entry.channel = row[7] ? row[7] : "";
entry.url = row[8] ? row[8] : "";
all_entries.push_back(entry);
}
@@ -327,14 +327,14 @@ public:
Guilds entry{};
entry.id = atoi(row[0]);
entry.name = row[1];
entry.name = row[1] ? row[1] : "";
entry.leader = atoi(row[2]);
entry.minstatus = atoi(row[3]);
entry.motd = row[4];
entry.motd = row[4] ? row[4] : "";
entry.tribute = atoi(row[5]);
entry.motd_setter = row[6];
entry.channel = row[7];
entry.url = row[8];
entry.motd_setter = row[6] ? row[6] : "";
entry.channel = row[7] ? row[7] : "";
entry.url = row[8] ? row[8] : "";
all_entries.push_back(entry);
}