Code Duplication    Length = 5-5 lines in 2 locations

Sources/Post.php 2 locations

@@ 678-682 (lines=5) @@
675
				$row = $smcFunc['db_fetch_assoc']($request);
676
				$smcFunc['db_free_result']($request);
677
678
				if (empty($row['id_member']))
679
				{
680
					$context['name'] = $smcFunc['htmlspecialchars']($row['poster_name']);
681
					$context['email'] = $smcFunc['htmlspecialchars']($row['poster_email']);
682
				}
683
			}
684
		}
685
@@ 794-798 (lines=5) @@
791
		}
792
793
		// Allow moderators to change names....
794
		if (allowedTo('moderate_forum') && empty($row['id_member']))
795
		{
796
			$context['name'] = $smcFunc['htmlspecialchars']($row['poster_name']);
797
			$context['email'] = $smcFunc['htmlspecialchars']($row['poster_email']);
798
		}
799
800
		// Set the destination.
801
		$context['destination'] = 'post2;start=' . $_REQUEST['start'] . ';msg=' . $_REQUEST['msg'] . ';' . $context['session_var'] . '=' . $context['session_id'] . (isset($_REQUEST['poll']) ? ';poll' : '');