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

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