mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
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:
parent
45f988c420
commit
45aa2c2f23
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user