Completed
Push — master ( 710747...fb0372 )
by mains
02:59
created

get-posts-ajax.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
include 'php/jodel-web.php';
3
4
if(isset($_GET['lastPostId']))
5
{
6
	$view->lastPostId = htmlspecialchars($_GET['lastPostId']);
7
	
8
	$posts = $view->getPosts($jodelAccountForView);
9
	?>
10
	<div class="nextPosts">
11
	<?php
12
	foreach($posts as $post)
13
	{
14
15
		$view->lastPostId = $post['post_id'];
16
		$view->jodelToHtml($post);	
17
	}
18
	?>
19
	</div>
20
	<div class="lastPostId">
21
	<?php echo $view->lastPostId; ?>
22
	</div>
23
	<?php
24
}
0 ignored issues
show
As per coding style, files should not end with a newline character.

This check marks files that end in a newline character, i.e. an empy line.

Loading history...
25