Explorar o código

add catch all for single item parse on options

CauseFX %!s(int64=4) %!d(string=hai) anos
pai
achega
4f4d172a0c
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      api/functions/option-functions.php

+ 5 - 0
api/functions/option-functions.php

@@ -13,6 +13,11 @@ trait OptionsFunction
 					'value' => $item
 				];
 			}
+		} else {
+			$formattedValues[] = [
+				'name' => $values,
+				'value' => $values
+			];
 		}
 		return $formattedValues;
 	}