Skip to content

Commit

Permalink
fix: set default value, so no exception will be thrown.
Browse files Browse the repository at this point in the history
  • Loading branch information
vbyndych committed Oct 13, 2023
1 parent 9cbb8a7 commit fa1e105
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/kernel/persistence/starsql/search/GateWay.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ private function fetchTripleList(Statement $query): array
foreach ($statement as $row) {
$triple = new \core_kernel_classes_Triple();

$triple->id = $row->get('id') ?? 0;
$triple->subject = $row->get('uri') ?? '';
$triple->id = $row->get('id', 0);
$triple->subject = $row->get('uri', '');
$triple->object = $row->get('object');

$returnValue[] = $triple;
Expand Down

0 comments on commit fa1e105

Please sign in to comment.