Skip to content
Snippets Groups Projects
Unverified Commit 066238a9 authored by Joas Schilling's avatar Joas Schilling Committed by Julius Härtl
Browse files

Fix unused variable $access

parent 1a73cab3
No related branches found
No related tags found
No related merge requests found
...@@ -103,8 +103,7 @@ class Manager implements IManager { ...@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment