]> git.mxchange.org Git - friendica.git/blobdiff - mod/videos.php
Small fixes
[friendica.git] / mod / videos.php
index a117e0f1a853f283b13b429d73457c5af676be5c..408e2acaa6dfc75ea408a899abc91f87a98fe477 100644 (file)
@@ -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()]);