Browse Source

Fixed a warning

Chun-Huai Cheng 7 years ago
parent
commit
b5ae48cb18
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tripal_chado/api/modules/tripal_chado.pub.api.inc

+ 1 - 1
tripal_chado/api/modules/tripal_chado.pub.api.inc

@@ -1018,7 +1018,7 @@ function tripal_get_minimal_pub_info($pub) {
   }
 
   // Chado has a null pub as default.  We don't return anything for this.
-  if ($pub->uniquename == 'null') {
+  if (isset($pub->uniquename) && $pub->uniquename == 'null') {
     return array();
   }