Browse Source

Fixed a warning

Chun-Huai Cheng 8 years ago
parent
commit
f040fd50b3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tripal_chado/includes/TripalFields/chado_linker__relationship.inc

+ 1 - 1
tripal_chado/includes/TripalFields/chado_linker__relationship.inc

@@ -330,7 +330,7 @@ class chado_linker__relationship extends TripalField {
       );
     }
     // Option 1: All terms of selected vocabularies
-    else if (array_pop($option1_test)) {
+    else if ($option1_test && array_pop($option1_test)) {
       $sql = "SELECT cvterm_id, name FROM {cvterm} WHERE cv_id IN (:cv_id) ORDER BY name";
       $results = chado_query($sql, array(':cv_id' => $option1_vocabs));
       while ($obj = $results->fetchObject()) {