Skip to content

Commit

Permalink
! Fixed a potential bug when creating media folders. (Subs-Media.php)
Browse files Browse the repository at this point in the history
@ I know, it's been a long time eh..? Well, when it works, it works.
  • Loading branch information
Nao committed Mar 23, 2021
1 parent f6c20a4 commit d802a61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/app/media/Subs-Media.php
Expand Up @@ -3486,7 +3486,8 @@ function aeva_mkdir($dir, $chmod)
return (bool) $success;
}

return @mkdir($amSettings['data_dir_path'] . $dir, $chmod);
// Create the folder. In case we're trying to create a folder that already exists, make it look like we just created it.
return @file_exists($amSettings['data_dir_path'] . $dir) || @mkdir($amSettings['data_dir_path'] . $dir, $chmod);
}

// Reset everyone's Unseen counter to zero.
Expand Down

0 comments on commit d802a61

Please sign in to comment.