Variable typo.

git-svn-id: https://develop.svn.wordpress.org/trunk@751 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2004-01-11 23:36:37 +00:00
parent c261c06217
commit 3fdb05f86a
1 changed files with 2 additions and 2 deletions

View File

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