Code Duplication    Length = 6-6 lines in 2 locations

Sources/ManageSettings.php 2 locations

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