diff --git a/library/Api/Pdf/PdfIdEndpoint.php b/library/Api/Pdf/PdfIdEndpoint.php index d8894894b..f748581c8 100644 --- a/library/Api/Pdf/PdfIdEndpoint.php +++ b/library/Api/Pdf/PdfIdEndpoint.php @@ -79,7 +79,7 @@ private function getPostsById(array $ids) { $postTypes = []; if (!empty($ids) && is_array($ids)) { foreach ($ids as $id) { - $id = absint(trim($id)); + $id = trim($id); $post = get_post($id); if (!empty($post->post_status) && $post->post_status == 'publish') { $post = \Municipio\Helper\Post::preparePostObject($post);