Completed
Pull Request — release-2.1 (#4573)
by Matthew
09:02
created
Sources/Profile.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -886,16 +886,16 @@
 block discarded – undo
886 886
 	$context['custom_fields_required'] = false;
887 887
 	while ($row = $smcFunc['db_fetch_assoc']($request))
888 888
 	{
889
-	    $value = $user_profile[$memID]['options'][$row['col_name']];
890
-	    $currentKey = 0;
891
-	    if (!empty($row['field_options'])) {
892
-            $fieldOptions = explode(',', $row['field_options']);
893
-            foreach ($fieldOptions as $k => $v) {
894
-                if (empty($currentKey)) {
895
-                    $currentKey = $v === $value ? $k : 0;
896
-                }
897
-            }
898
-        }
889
+		$value = $user_profile[$memID]['options'][$row['col_name']];
890
+		$currentKey = 0;
891
+		if (!empty($row['field_options'])) {
892
+			$fieldOptions = explode(',', $row['field_options']);
893
+			foreach ($fieldOptions as $k => $v) {
894
+				if (empty($currentKey)) {
895
+					$currentKey = $v === $value ? $k : 0;
896
+				}
897
+			}
898
+		}
899 899
 
900 900
 		// Shortcut.
901 901
 		$exists = $memID && isset($user_profile[$memID], $user_profile[$memID]['options'][$row['col_name']]);
Please login to merge, or discard this patch.