Kaynağa Gözat

Same logic for both

mboudet 6 yıl önce
ebeveyn
işleme
7a4353b54b

+ 3 - 2
tripal_chado/includes/TripalFields/schema__alternate_name/schema__alternate_name_formatter.inc

@@ -15,9 +15,10 @@ class schema__alternate_name_formatter extends ChadoFieldFormatter {
     $list_items = array();
 
     foreach ($items as $delta => $item) {
-      if(! empty($item['value'])){
-        $list_items[] = $item['value'];
+      if(empty($item['value'])){
+        continue;
       }
+      $list_items[] = $item['value'];
     }
     $list = 'There are no synonyms.';
     if (count($list_items) > 0) {