break;
default:
$type = explode("\n", $row['type'], 2);
- if (count($type) < 2) continue;
+ if (count($type) < 2) continue 2;
switch ($type[0]) {
case 'select':
$row['type'] = $type[0];
$row['type'] = 'radioButton';
break;
default:
- continue;
+ continue 3;
}
$selectOptions = $type[1];
if ($customFields) {
foreach ($customFields as $key => $value) {
+ if (is_array($value)) continue;
+
if (in_array($key, self::$knownProfileFields)) {
$options[$key] = $value;
continue;
$row['field_type'] = 'boolean';
break;
default:
- continue;
+ continue 2;
}
$selectOptions = [];