Browse Source

Issue #72: Updating API to include 2.1 improvements: dfa8c59

Stephen Ficklin 7 years ago
parent
commit
bc4db10011
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tripal_chado/api/tripal_chado.query.api.inc

+ 1 - 1
tripal_chado/api/tripal_chado.query.api.inc

@@ -1615,7 +1615,7 @@ function chado_select_record_check_value_type(&$op, &$value, $type) {
  * @ingroup tripal_chado_query_api
  */
 function chado_query($sql, $args = array()) {
-  $is_local = $GLOBALS["chado_is_local"];
+  $is_local = isset($GLOBALS["chado_is_local"]) && $GLOBALS["chado_is_local"];
 
   // Args should be an array
   if (!is_array($args)) {