mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-06 21:53:51 +00:00
Remove Duplicative MySQL Error: Log.Out(Logs::General, Logs::Error, Error
This commit is contained in:
parent
2b091206bd
commit
b14c3c8674
@ -3188,14 +3188,11 @@ void Database::ClearGroup(uint32 gid) {
|
||||
QueryDatabase(query);
|
||||
}
|
||||
|
||||
uint32 Database::GetGroupID(const char* name){
|
||||
|
||||
uint32 Database::GetGroupID(const char* name){
|
||||
std::string query = StringFormat("SELECT groupid from group_id where name='%s'", name);
|
||||
auto results = QueryDatabase(query);
|
||||
|
||||
if (!results.Success())
|
||||
{
|
||||
Log.Out(Logs::General, Logs::Error, "Error getting group id: %s", results.ErrorMessage().c_str());
|
||||
if (!results.Success()) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user