mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-03 20:56:21 +00:00
Fixed some small issues in import routine.
This commit is contained in:
@@ -171,7 +171,7 @@ class ImportBudget
|
||||
Log::debug(sprintf('Find mapped budget based on field "%s" with value', $field), $array);
|
||||
// check if a pre-mapped object exists.
|
||||
$mapped = $this->getMappedObject($array);
|
||||
if (null !== $mapped->id) {
|
||||
if (null !== $mapped) {
|
||||
Log::debug(sprintf('Found budget #%d!', $mapped->id));
|
||||
|
||||
return $mapped;
|
||||
|
||||
@@ -192,7 +192,7 @@ class ImportCategory
|
||||
*
|
||||
* @return Category
|
||||
*/
|
||||
private function getMappedObject(array $array): Category
|
||||
private function getMappedObject(array $array): ?Category
|
||||
{
|
||||
Log::debug('In getMappedObject() for Category');
|
||||
if (0 === count($array)) {
|
||||
|
||||
Reference in New Issue
Block a user