Skip to content

Commit

Permalink
Merge pull request #1295 from tripal/1294-tv3-fix-non-integer-paramet…
Browse files Browse the repository at this point in the history
…er-to-fetchCol

Issue 1294 fix non-integer parameter to fetchCol
  • Loading branch information
spficklin committed Aug 30, 2022
2 parents 4e601b6 + 2f75256 commit 43131a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ class data__sequence_record extends ChadoField {
INNER JOIN {cvterm} CVT on SF.type_id = CVT.cvterm_id
WHERE FR.object_id = :feature_id
";
$subtypes = chado_query($sql, [':feature_id' => $feature->feature_id])->fetchCol('name');
$subtypes = chado_query($sql, [':feature_id' => $feature->feature_id])->fetchCol();

$exon = 'exon';
if (!in_array('exon', $subtypes) and in_array('CDS', $subtypes)) {
Expand Down

0 comments on commit 43131a6

Please sign in to comment.