Variable typo.

git-svn-id: http://svn.automattic.com/wordpress/trunk@751 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2004-01-11 23:36:37 +00:00
parent c66a6d60d6
commit 9d2f404548
1 changed files with 2 additions and 2 deletions

View File

@ -376,8 +376,8 @@ switch($action) {
if ($user_level == 0)
die ('Cheatin’ uh?');
$post_id = $HTTP_GET_VARS['post'];
$postdata = get_postdata($post) or die('Oops, no post with this ID. <a href="post.php">Go back</a>!');
$post_id = intval($HTTP_GET_VARS['post']);
$postdata = get_postdata($post_id) or die('Oops, no post with this ID. <a href="post.php">Go back</a>!');
$authordata = get_userdata($postdata['Author_ID']);
if ($user_level < $authordata->user_level)