Skip to content

Commit

Permalink
Merge pull request #128 from vendethiel/bugfix/draft-by-user
Browse files Browse the repository at this point in the history
Make sure we're only looking at drafts by the current user
  • Loading branch information
MightyGorgon committed Aug 15, 2016
2 parents a1f8680 + 9161dab commit bebf21a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions privmsg.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
$sql = "SELECT d.*
FROM " . DRAFTS_TABLE . " d
WHERE d.draft_id = '" . $draft_id . "'
AND d.user_id = '" . $user->data['user_id'] . "'
LIMIT 1";
$result = $db->sql_query($sql);

Expand Down

0 comments on commit bebf21a

Please sign in to comment.