Browse Source

add catch all for single item parse on options

CauseFX 4 years ago
parent
commit
4f4d172a0c
1 changed files with 5 additions and 0 deletions
  1. 5 0
      api/functions/option-functions.php

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

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