소스 검색

Implement Lacey's suggestions

Abdullah Almsaeed 6 년 전
부모
커밋
9db38e20dd
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      tripal_chado/includes/TripalFields/sbo__relationship/sbo__relationship.inc

+ 2 - 2
tripal_chado/includes/TripalFields/sbo__relationship/sbo__relationship.inc

@@ -856,8 +856,8 @@ class sbo__relationship extends ChadoField {
       $type_id = $item['chado-' . $field_table . '__type_id'];
       $type_id = isset($item['type_id']) ? $item['chado-' . $field_table . '__type_id'] : $type_id;
       $type_name = isset($item['type_name']) ? $item['type_name'] : '';
-      $subject_name = isset($item['subject_name']) ? $items['subject_name'] : null;
-      $object_name = isset($item['object_name']) ? $item['object_name'] : null;
+      $subject_name = isset($item['subject_name']) ? $items['subject_name'] : '';
+      $object_name = isset($item['object_name']) ? $item['object_name'] : '';
 
 
       // If the row is empty then just continue, there's nothing to validate.