Skip to content

Commit dc827c9

Browse files
committed
fix test
1 parent a39e2e5 commit dc827c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/NewUserTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ private function ensureUserDoesNotExist()
4646
global $USER, $SQL, $LDAP;
4747
$SQL->deleteRequestsByUser($USER->getUID());
4848
$org = $USER->getOrgGroup();
49-
if ($org->inOrg($USER)) {
49+
if ($org->exists() and $org->inOrg($USER)) {
5050
$org->removeUser($USER);
5151
assert(!$org->inOrg($USER));
5252
}

0 commit comments

Comments
 (0)