Explorar o código

Fixed merge conflict

Stephen Ficklin %!s(int64=9) %!d(string=hai) anos
pai
achega
5d1dc626d2
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      tripal_core/api/tripal_core.chado_query.api.inc

+ 3 - 3
tripal_core/api/tripal_core.chado_query.api.inc

@@ -1240,16 +1240,16 @@ function chado_select_record($table, $columns, $values, $options = NULL) {
               for %field where the definition supplied was %value',
               array('%field' => $field, '%value' => print_r($value, TRUE))
             );
-            return FALSE;
+            return array();
           }
           // Ensure that there were results returned.
-          elseif (count($results) == 0) {
+          elseif (count($results)==0) {
             tripal_report_error('tripal_core', TRIPAL_ERROR,
               'chado_select_record: the foreign key definition for %field
               returned no results where the definition supplied was %value',
               array('%field' => $field, '%value' => print_r($value, TRUE))
             );
-            return FALSE;
+            return array();
           }
           // If there was only a single resutlt then add it using an op of =.
           elseif (count($results) == 1) {