mirror of https://github.com/nextcloud/photos
Go for === in favor of strcmp for clarity
Signed-off-by: Simon Spannagel <simonspa@kth.se>
This commit is contained in:
parent
7bc21922a7
commit
f3365d9ef7
|
@ -349,7 +349,7 @@ class AlbumMapper {
|
|||
foreach ($rows as $row) {
|
||||
switch ($row['collaborator_type']) {
|
||||
case self::TYPE_USER:
|
||||
if (!strcmp($row['collaborator_id'], $userId)) {
|
||||
if ($row['collaborator_id'] === $userId) {
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue