summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBartek Przybylski <bart.p.pl@gmail.com>2011-09-18 15:06:51 +0200
committerBartek Przybylski <bart.p.pl@gmail.com>2011-09-18 15:06:51 +0200
commit6e980d419c0c93b606858b1a907818c5aa386524 (patch)
tree8ea41e1778e622c3305ee1f2479865039158c5de /lib
parent94696ea7dec2931f1e700a5e5261bd1dfabf3705 (diff)
parent0714e83a8e9f6c793822b02b870686294b949763 (diff)
downloadnextcloud-server-6e980d419c0c93b606858b1a907818c5aa386524.tar.gz
nextcloud-server-6e980d419c0c93b606858b1a907818c5aa386524.zip
Merge branch 'master' of git://gitorious.org/owncloud/owncloud
Diffstat (limited to 'lib')
-rw-r--r--lib/group/database.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/group/database.php b/lib/group/database.php
index 7bf9c8bb5ce..f35f61434f0 100644
--- a/lib/group/database.php
+++ b/lib/group/database.php
@@ -56,7 +56,7 @@ class OC_Group_Database extends OC_Group_Backend {
$query = OC_DB::prepare( "SELECT gid FROM `*PREFIX*groups` WHERE gid = ?" );
$result = $query->execute( array( $gid ));
- if( !$result->fetchRow() ){
+ if( $result->fetchRow() ){
// Can not add an existing group
return false;
}
@@ -101,7 +101,7 @@ class OC_Group_Database extends OC_Group_Backend {
$query = OC_DB::prepare( "SELECT uid FROM `*PREFIX*group_user` WHERE gid = ? AND uid = ?" );
$result = $query->execute( array( $gid, $uid ));
- return $result->numRows() > 0 ? true : false;
+ return $result->fetchRow() ? true : false;
}
/**