浏览代码

Fixed a warning

Chun-Huai Cheng 8 年之前
父节点
当前提交
f040fd50b3
共有 1 个文件被更改,包括 1 次插入1 次删除
  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()) {