Skip to content

Commit

Permalink
Fix unknown entry informations.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandra Nantel committed Jul 9, 2018
1 parent e6a504b commit 201a05c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/class.tracker.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,11 @@ public static function formatEntryItem($activity, $fallback = false)
$entry = (new EntryManager)
->select()
->entry($activity['item_id'])
->section($activity['item_type'])
->includeAllFields()
->execute()
->next();
$entry = $entry[0];

$section = (new SectionManager)
->select()
->section($activity['item_type'])
Expand Down

0 comments on commit 201a05c

Please sign in to comment.