From b14c3c8674b9584f7326dcdf1c668ad082a6c442 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Tue, 20 Jan 2015 02:08:25 -0600 Subject: [PATCH] Remove Duplicative MySQL Error: Log.Out(Logs::General, Logs::Error, Error --- common/database.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/common/database.cpp b/common/database.cpp index acb1eafcb..9a0065b94 100644 --- a/common/database.cpp +++ b/common/database.cpp @@ -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; }