Browse Source

Use property exists instead of array_key_exists

Bradford Condon 4 years ago
parent
commit
45c2feedb2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tripal_chado/api/tripal_chado.variables.api.inc

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

@@ -791,7 +791,7 @@ function chado_expand_var($object, $type, $to_expand, $table_options = []) {
       $foreign_table = $to_expand;
 
       // BASE CASE: don't expand the table it already is expanded
-      if (array_key_exists($foreign_table, $object)) {
+      if (property_exists($object, $foreign_table)) {
         return $object;
       }
       $foreign_table_desc = chado_get_schema($foreign_table);