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
This commit is contained in:
slawkens 2017-08-24 09:59:46 +02:00
parent 45f988c420
commit 45aa2c2f23

View File

@ -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();
}