mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Error code for #4200
This commit is contained in:
parent
9325b628fd
commit
a19e116a15
@ -52,6 +52,10 @@ class SetCategory implements ActionInterface
|
||||
{
|
||||
$user = User::find($journal['user_id']);
|
||||
$search = $this->action->action_value;
|
||||
if(null === $user) {
|
||||
Log::error(sprintf('Journal has no valid user ID so action SetCategory("%s") cannot be applied', $search), $journal);
|
||||
return false;
|
||||
}
|
||||
|
||||
/** @var CategoryFactory $factory */
|
||||
$factory = app(CategoryFactory::class);
|
||||
|
Loading…
Reference in New Issue
Block a user