Completed
Push — master ( 027077...76536b )
by mains
02:56
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
3
include 'php/jodel-web.php';
4
5
if(isset($_GET['lastPostId']))
6
{
7
	$view->lastPostId = htmlspecialchars($_GET['lastPostId']);
8
	
9
	$posts = $view->getPosts($jodelAccountForView);
10
	?>
11
	<div class="nextPosts">
12
	<?php
13
	foreach($posts as $post)
14
	{
15
16
		$view->lastPostId = $post['post_id'];
17
		$view->jodelToHtml($post);	
18
	}
19
	?>
20
	</div>
21
	<div class="lastPostId">
22
	<?php echo $view->lastPostId; ?>
23
	</div>
24
	<?php
25
}
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...
26