Fix unused variable $access
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
1a73cab3db
commit
066238a990
|
@ -103,8 +103,7 @@ class Manager implements IManager {
|
||||||
|
|
||||||
$access = $row['access'] === null ? null : (bool) $row['access'];
|
$access = $row['access'] === null ? null : (bool) $row['access'];
|
||||||
if ($user instanceof IUser) {
|
if ($user instanceof IUser) {
|
||||||
$access = [$user->getUID() => $access];
|
return new Collection($this, $this->connection, (int) $row['id'], (string) $row['name'], $user, $access);
|
||||||
return new Collection($this, $this->connection, (int) $row['id'], (string) $row['name'], $user, null);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Collection($this, $this->connection, (int) $row['id'], (string) $row['name'], $user, $access);
|
return new Collection($this, $this->connection, (int) $row['id'], (string) $row['name'], $user, $access);
|
||||||
|
|
Loading…
Reference in New Issue