diff --git a/src/messenger/webim/operator/group.php b/src/messenger/webim/operator/group.php index 9941e008..77473e16 100644 --- a/src/messenger/webim/operator/group.php +++ b/src/messenger/webim/operator/group.php @@ -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'],