Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nickhnsn authored Aug 6, 2024
1 parent 7da2cb9 commit 16e83d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Controllers/UploadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ protected function validateUser(Request $request, Response $response, UploadedFi
*/
protected function saveMedia(Response $response, UploadedFileInterface $file, $user, $code)
{
if ($code == null) {
if ($code === null) {
do {
$code = humanRandomString();
} while ($this->database->query('SELECT COUNT(*) AS `count` FROM `uploads` WHERE `code` = ?', $code)->fetch()->count > 0);
Expand Down

0 comments on commit 16e83d5

Please sign in to comment.