Fixed some small issues in import routine.

This commit is contained in:
James Cole
2018-03-24 11:49:26 +01:00
parent 55602d632d
commit 796ab4bf2c
4 changed files with 21 additions and 6 deletions

View File

@@ -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;