@@ -12,11 +12,11 @@ |
||
| 12 | 12 | <?php |
| 13 | 13 | |
| 14 | 14 | if($video['author'] == $_SESSION['siteusername']) { |
| 15 | - $stmt = $__db->prepare("DELETE FROM videos WHERE rid=:rid AND author=:author"); |
|
| 16 | - $stmt->execute(array( |
|
| 15 | + $stmt = $__db->prepare("DELETE FROM videos WHERE rid=:rid AND author=:author"); |
|
| 16 | + $stmt->execute(array( |
|
| 17 | 17 | ':author' => $video['author'], |
| 18 | 18 | ':rid' => $video['rid'], |
| 19 | - )); |
|
| 19 | + )); |
|
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | header('Location: /my_videos'); |