Skip to content

Commit

Permalink
fixed: correctly explode type_subtype during processing
Browse files Browse the repository at this point in the history
  • Loading branch information
jeabakker committed Nov 28, 2024
1 parent c1a3076 commit 8082217
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions classes/CSVExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ public function getFormData(string $field = null) {
return null;
}

list($type, $subtype) = explode(':', $type_subtype);
if ($field == 'type') {
return $type;
$exploded = explode(':', $type_subtype);
if ($field === 'type') {
return elgg_extract(0, $exploded);
}

return $subtype;
return elgg_extract(1, $exploded);
}

return elgg_extract($field, $this->form_data);
Expand Down

0 comments on commit 8082217

Please sign in to comment.