summaryrefslogtreecommitdiffstats
path: root/lib/group/database.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-04-13 01:58:53 +0200
committerRobin Appelman <icewind@owncloud.com>2012-04-13 01:59:05 +0200
commit1d8fdf52d52f4a73cb0a59b5d2c3a088ae1e9247 (patch)
tree09eedd220c847d587639567219194b92d39fa2f2 /lib/group/database.php
parente9c1f8b4e650052eee33de6e1b4e29715e41cdf0 (diff)
downloadnextcloud-server-1d8fdf52d52f4a73cb0a59b5d2c3a088ae1e9247.tar.gz
nextcloud-server-1d8fdf52d52f4a73cb0a59b5d2c3a088ae1e9247.zip
allow multiply group backends
Diffstat (limited to 'lib/group/database.php')
-rw-r--r--lib/group/database.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/group/database.php b/lib/group/database.php
index 1afd4b5fe4c..d401acf43b3 100644
--- a/lib/group/database.php
+++ b/lib/group/database.php
@@ -117,8 +117,10 @@ class OC_Group_Database extends OC_Group_Backend {
if( !self::inGroup( $uid, $gid )){
$query = OC_DB::prepare( "INSERT INTO `*PREFIX*group_user` ( `uid`, `gid` ) VALUES( ?, ? )" );
$result = $query->execute( array( $uid, $gid ));
+ return true;
+ }else{
+ return false;
}
- return true;
}
/**