From 45aa2c2f23d7213ebd7b7986284988d7d0306e44 Mon Sep 17 00:00:00 2001 From: slawkens Date: Thu, 24 Aug 2017 09:59:46 +0200 Subject: [PATCH] fixed guild creating also i i forgot to write, in last commit i've added Twig template engine. I will use it to separate html content from php code --- system/libs/pot/OTS_Guild.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/libs/pot/OTS_Guild.php b/system/libs/pot/OTS_Guild.php index 881bd419..b2f096ed 100644 --- a/system/libs/pot/OTS_Guild.php +++ b/system/libs/pot/OTS_Guild.php @@ -195,7 +195,7 @@ class OTS_Guild extends OTS_Row_DAO implements IteratorAggregate, Countable else { // INSERT query on database - $this->db->query('INSERT INTO `guilds` (`name`, `' . $ownerid . '`, `' . $creationdata . '`) VALUES (' . $this->db->quote($this->data['name']) . ', ' . $this->data['ownerid'] . ', ' . $this->data['creationdata'] . ')'); + $this->db->query("INSERT INTO `guilds` (`name`, `" . $ownerid . "`, `" . $creationdata . "`, `description`) VALUES (" . $this->db->quote($this->data['name']) . ", " . $this->data['ownerid'] . ", " . $this->data['creationdata'] . ", '')"); // ID of new group $this->data['id'] = $this->db->lastInsertId(); }