Skip to content

Commit 9272a13

Browse files
refactor(files): use strict string comparison instead of empty()
Co-authored-by: Kate <[email protected]> Signed-off-by: Cristian Scheid <[email protected]>
1 parent fa2a7b9 commit 9272a13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/files/lib/Service/OwnershipTransferService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function transfer(
109109
$cleanUserName = $sourceUid;
110110
} else {
111111
$cleanUserName = $this->sanitizeFolderName($sourceUser->getDisplayName());
112-
if (empty($cleanUserName)) {
112+
if ($cleanUserName === '') {
113113
$cleanUserName = $sourceUid;
114114
}
115115
}

0 commit comments

Comments
 (0)