Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel authored and daniel committed May 21, 2019
1 parent fbcedd9 commit 59bb1b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion objects/video.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ function save($updateVideoGroups = false, $allowOfflineUser = false) {
$this->setTitle($global['mysqli']->real_escape_string(trim($this->title)));
$this->setDescription($global['mysqli']->real_escape_string($this->description));

if (forbiddenWords($this->title) || forbiddenWords($this->description)) {
if (fornWords($this->title) || forbiddenWords($this->description)) {
return false;
}

Expand Down Expand Up @@ -1232,6 +1232,7 @@ function delete() {
$ftp->removeFiles($video['filename']);
}
$this->removeFiles($video['filename']);
self::deleteThumbs($video['filename']);
}
return $resp;
}
Expand Down

0 comments on commit 59bb1b3

Please sign in to comment.