Quellcode durchsuchen

Fix buggy call to getVal() in patient dashboard

Fix buggy call to getVal() in patient dashboard
Vijayakrishnan Krishnan vor 4 Jahren
Ursprung
Commit
a951ca8848
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      resources/views/app/patient/dashboard.blade.php

+ 2 - 2
resources/views/app/patient/dashboard.blade.php

@@ -10,7 +10,7 @@
 	<?php
 		function getVal($object, $prop){
 			if(isset($object->$prop)){
-				return $object->prop;
+				return $object->$prop;
 			}else{
 				return '';
 			}
@@ -537,7 +537,7 @@
                                                 <span class="text-secondary mx-1">/</span>
                                                 <span class="text-secondary">{{ getVal($line->contentDetail, "Chronic or Acute") }}</span>
                                                 <span class="text-secondary mx-1">/</span>
-                                                <span class="text-secondary">ICD: {{ getVal($line->contentDetail, "ICD") ? $line->contentDetail("ICD") : '-' }}</span>
+                                                <span class="text-secondary">ICD: {{ getVal($line->contentDetail, "ICD") ? getVal($line->contentDetail, "ICD") : '-' }}</span>
                                             </div>
                                         </td>
                                     </tr>