Fix bug in groups saving

This commit is contained in:
Dmitriy Simushev 2013-02-25 15:32:16 +00:00
parent f72a0187be
commit 9436b486f9

View File

@ -73,7 +73,7 @@ function create_group($group)
"vccommondescription,vcemail,vctitle,vcchattitle,vchosturl,vclogo,iweight) " .
"values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",
array(
($group['parent'] ? (int)$group['parent'] : 'NULL'),
($group['parent'] ? (int)$group['parent'] : NULL),
$group['name'],
$group['description'],
$group['commonname'],
@ -113,7 +113,7 @@ function update_group($group)
"vccommonname = ?, vccommondescription = ?, vcemail = ?, vctitle = ?, " .
"vcchattitle = ?, vchosturl = ?, vclogo = ?, iweight = ? where groupid = ?",
array(
($group['parent'] ? (int)$group['parent'] : 'NULL'),
($group['parent'] ? (int)$group['parent'] : NULL),
$group['name'],
$group['description'],
$group['commonname'],