fixed angeltype add model

This commit is contained in:
Philip Häusler 2014-03-24 11:51:51 +01:00
parent 0ce1ba5bf1
commit dc7a56f422
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ function AngelType_create($name, $restricted, $description) {
$result = sql_query(" $result = sql_query("
INSERT INTO `AngelTypes` SET INSERT INTO `AngelTypes` SET
`name`='" . sql_escape($name) . "', `name`='" . sql_escape($name) . "',
`restricted`=" . sql_escape($restricted ? 1 : 0) . " `restricted`=" . sql_escape($restricted ? 1 : 0) . ",
`description`='" . sql_escape($description) . "'"); `description`='" . sql_escape($description) . "'");
if ($result === false) if ($result === false)
return false; return false;