From 9436b486f9b938f88a4e2d892007def7a92ae712 Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Mon, 25 Feb 2013 15:32:16 +0000 Subject: [PATCH] Fix bug in groups saving --- src/messenger/webim/operator/group.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'],