|
@@ -8,6 +8,7 @@ $contentData = [];
|
|
|
|
|
|
if($page){
|
|
if($page){
|
|
$contentData = json_decode($page->data, true);
|
|
$contentData = json_decode($page->data, true);
|
|
|
|
+
|
|
}else{
|
|
}else{
|
|
if ($patient->canvas_data) {
|
|
if ($patient->canvas_data) {
|
|
$canvasData = json_decode($patient->canvas_data, true);
|
|
$canvasData = json_decode($patient->canvas_data, true);
|
|
@@ -17,6 +18,8 @@ if($page){
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+if(!isset($contentData['items'])) $contentData['items'] = [];
|
|
|
|
+
|
|
if(count($contentData['items'])) {
|
|
if(count($contentData['items'])) {
|
|
for ($i = 0; $i < count($contentData['items']); $i++) {
|
|
for ($i = 0; $i < count($contentData['items']); $i++) {
|
|
$item = $contentData['items'][$i];
|
|
$item = $contentData['items'][$i];
|