@@ -886,16 +886,16 @@ |
||
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']]); |