Go for === in favor of strcmp for clarity

Signed-off-by: Simon Spannagel <simonspa@kth.se>
This commit is contained in:
Simon Spannagel 2023-01-23 19:28:40 +01:00
parent 7bc21922a7
commit f3365d9ef7
1 changed files with 1 additions and 1 deletions

View File

@ -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;