Code Duplication    Length = 11-11 lines in 2 locations

get-posts-ajax.php 1 location

@@ 159-169 (lines=11) @@
156
									</span> 
157
								</td>
158
								<td class="comments">
159
									<?php if($showCommentIcon) {?>
160
									<span data-tooltip="Comments">
161
										<a href="index.php?getPostDetails=true&postID=<?php echo $posts[$i]["post_id"];?>">
162
											<i class="fa fa-commenting-o"></i>
163
											<?php if(array_key_exists("child_count", $posts[$i])) {
164
														echo $posts[$i]["child_count"];
165
													} else echo "0";
166
											?>
167
											</a>
168
									</span>
169
									<?php } ?>
170
								</td>
171
								<td class="distance">
172
									<span data-tooltip="Distance">

index.php 1 location

@@ 265-275 (lines=11) @@
262
											</span> 
263
										</td>
264
										<td class="comments">
265
											<?php if($showCommentIcon) {?>
266
											<span data-tooltip="Comments">
267
												<a href="index.php?getPostDetails=true&postID=<?php echo $posts[$i]["post_id"];?>">
268
													<i class="fa fa-commenting-o"></i>
269
													<?php if(array_key_exists("child_count", $posts[$i])) {
270
																echo $posts[$i]["child_count"];
271
															} else echo "0";
272
													?>
273
													</a>
274
											</span>
275
											<?php } ?>
276
										</td>
277
										<td class="distance">
278
											<span data-tooltip="Distance">