diff options
Diffstat (limited to 'lib/group')
-rw-r--r-- | lib/group/database.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/group/database.php b/lib/group/database.php index 8a9fc53d39f..7bf9c8bb5ce 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->numRows() > 0 ){ + if( !$result->fetchRow() ){ // Can not add an existing group return false; } |