fixed angeltype add model
This commit is contained in:
parent
0ce1ba5bf1
commit
dc7a56f422
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue