mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-25 21:16:47 +00:00
Fix issues where data-variable was not initialized properly.
This commit is contained in:
@@ -229,8 +229,8 @@ class LinkTypeRepository implements LinkTypeRepositoryInterface
|
||||
*/
|
||||
public function storeLink(array $information, TransactionJournal $inward, TransactionJournal $outward): TransactionJournalLink
|
||||
{
|
||||
$linkType = $this->find((int)($information['link_type_id'] ?? 0));
|
||||
if (null === $linkType->id) {
|
||||
$linkType = $this->findNull((int)($information['link_type_id'] ?? 0));
|
||||
if (null === $linkType) {
|
||||
throw new FireflyException(sprintf('Link type #%d cannot be resolved to an actual link type', $information['link_type_id'] ?? 0));
|
||||
}
|
||||
|
||||
|
||||
@@ -267,7 +267,6 @@ class TagRepository implements TagRepositoryInterface
|
||||
public function tagCloud(?int $year): array
|
||||
{
|
||||
// Some vars
|
||||
$return = [];
|
||||
$tags = $this->getTagsInYear($year);
|
||||
$max = $this->getMaxAmount($tags);
|
||||
$min = $this->getMinAmount($tags);
|
||||
|
||||
Reference in New Issue
Block a user