mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
parent
36b0c599f5
commit
f80baf03d4
2 changed files with 2 additions and 2 deletions
|
|
@ -185,7 +185,7 @@ class OC_Group_Database extends OC_Group_Backend {
|
|||
public function groupExists($gid) {
|
||||
$query = OC_DB::prepare('SELECT `gid` FROM `*PREFIX*groups` WHERE `gid` = ?');
|
||||
$result = $query->execute(array($gid))->fetchOne();
|
||||
if ($result) {
|
||||
if ($result !== false) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@ class Manager extends PublicEmitter {
|
|||
* @return \OC\Group\Group
|
||||
*/
|
||||
public function createGroup($gid) {
|
||||
if (!$gid) {
|
||||
if ($gid === '' || is_null($gid)) {
|
||||
return false;
|
||||
} else if ($group = $this->get($gid)) {
|
||||
return $group;
|
||||
|
|
|
|||
Loading…
Reference in a new issue