diff --git a/blog/publish_post.php b/blog/publish_post.php index b22d0849..9d333fb0 100755 --- a/blog/publish_post.php +++ b/blog/publish_post.php @@ -11,7 +11,7 @@ if(isset($_POST) && $logged_in) if ($post) { $success = true; - if ($success && !$user->admin && $post_select['author_id'] != $user->id) + if ($success && !$user->admin && $post['author_id'] != $user->id) { $error = "You are not allowed to publish this post."; if (!$publish)