mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 14:41:28 +00:00
ResolveBug converted to QueryDatabase
This commit is contained in:
parent
9270c45a5e
commit
7b33ef67f2
@ -433,12 +433,8 @@ std::map<std::string,std::string> EQW::GetBugDetails(Const_char *id) {
|
||||
|
||||
void EQW::ResolveBug(const char *id) {
|
||||
std::vector<std::string> res;
|
||||
char errbuf[MYSQL_ERRMSG_SIZE];
|
||||
char* query = 0;
|
||||
if(database.RunQuery(query, MakeAnyLenString(&query, "UPDATE bugs SET status=1 WHERE id=%s", id), errbuf)) {
|
||||
safe_delete_array(query);
|
||||
}
|
||||
safe_delete_array(query);
|
||||
std::string query = StringFormat("UPDATE bugs SET status=1 WHERE id=%s", id);
|
||||
database.QueryDatabase(query);
|
||||
}
|
||||
|
||||
void EQW::SendMessage(uint32 type, const char *msg) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user