|
@@ -1,5 +1,5 @@
|
|
|
<?php
|
|
|
-if(!$contentData) {
|
|
|
+if(!$contentData || !isset($contentData['items']) || !count($contentData['items'])) {
|
|
|
$contentData = [
|
|
|
"items" => [
|
|
|
[
|
|
@@ -10,15 +10,6 @@ if(!$contentData) {
|
|
|
];
|
|
|
}
|
|
|
|
|
|
-if(!isset($contentData['items'])){
|
|
|
- $contentData['items'] = [
|
|
|
- [
|
|
|
- "title" => "",
|
|
|
- "detail" => "",
|
|
|
- ]
|
|
|
- ];
|
|
|
-}
|
|
|
-
|
|
|
$formID = rand(0, 100000);
|
|
|
?>
|
|
|
<div id="allergySection">
|