fixed missing variable in posts.php