Small fixes
- Avoid an intermediate variable - Use `rawContent()` in `Attach` module - Small typo
This commit is contained in:
parent
2f49c4a058
commit
518f28a7bf
3 changed files with 5 additions and 8 deletions
|
@ -114,8 +114,7 @@ function videos_post(App $a)
|
|||
|
||||
$video_id = $_POST['id'];
|
||||
|
||||
$r = Attach::exists(['id' => $video_id, 'uid' => local_user()]);
|
||||
if ($r === true) {
|
||||
if (Attach::exists(['id' => $video_id, 'uid' => local_user()])) {
|
||||
// delete the attachment
|
||||
Attach::delete(['id' => $video_id, 'uid' => local_user()]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue