|
|
@@ -65,7 +65,7 @@ class fichier
|
|
|
|
|
|
public static function delete(string $_md5, string $_folderFiles = ROOT_DIR . "/video/")
|
|
|
{
|
|
|
- if (isset($_md5) and $_md5 != NULL and file_exists($_folderFiles . $_md5)) {
|
|
|
+ if (isset($_md5) and $_md5 != NULL and file_exists($_folderFiles . $_md5 . ".mp4")) {
|
|
|
if (unlink($_folderFiles . $_md5 . ".mp4")) {
|
|
|
unlink($_folderFiles . $_md5 . ".jpg");
|
|
|
db::query("DELETE FROM videos WHERE md5 = :md5");
|