Skip to content

Commit

Permalink
Merge pull request #1096 from tripal/7.x-3.x-1088-array_key_exists_on…
Browse files Browse the repository at this point in the history
…_object

Use property exists instead of array_key_exists
  • Loading branch information
spficklin committed Oct 5, 2020
2 parents 04dee24 + 45c2fee commit d70f3e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tripal_chado/api/tripal_chado.variables.api.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d70f3e7

Please sign in to comment.