diff options
author | Simon Spannagel <simonspa@kth.se> | 2023-01-23 19:28:40 +0100 |
---|---|---|
committer | Simon Spannagel <simonspa@kth.se> | 2023-01-24 07:13:58 +0100 |
commit | f3365d9ef75a1fa372f5a1007b28f5095a0c980c (patch) | |
tree | e22998dcd2baee34846b864782cd98f586cbbd57 | |
parent | 7bc21922a7aed1f287f4ce5ebae00e49803fb08c (diff) |
Go for === in favor of strcmp for clarity
Signed-off-by: Simon Spannagel <simonspa@kth.se>
-rw-r--r-- | lib/Album/AlbumMapper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Album/AlbumMapper.php b/lib/Album/AlbumMapper.php index 0562d8e5..8b7ed7df 100644 --- a/lib/Album/AlbumMapper.php +++ b/lib/Album/AlbumMapper.php @@ -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; |