Code Duplication    Length = 6-6 lines in 2 locations

Sources/ManageSettings.php 2 locations

@@ 729-734 (lines=6) @@
726
						continue;
727
728
					// Check the question isn't empty (because they want to delete it?)
729
					if (empty($question) || trim($question) == '')
730
					{
731
						if (isset($context['question_answers'][$q_id]))
732
							$changes['delete'][] = $q_id;
733
						continue;
734
					}
735
					$question = $smcFunc['htmlspecialchars'](trim($question));
736
737
					// Get the answers. Firstly check there actually might be some.
@@ 749-754 (lines=6) @@
746
					foreach ($_POST['answer'][$lang_id][$q_id] as $answer)
747
						if (!empty($answer) && trim($answer) !== '')
748
							$answers[] = $smcFunc['htmlspecialchars'](trim($answer));
749
					if (empty($answers))
750
					{
751
						if (isset($context['question_answers'][$q_id]))
752
							$changes['delete'][] = $q_id;
753
						continue;
754
					}
755
					$answers = $smcFunc['json_encode']($answers);
756
757
					// At this point we know we have a question and some answers. What are we doing with it?