Skip to content

Commit

Permalink
Fix lint & units tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Lainow committed May 6, 2024
1 parent fe60047 commit 8496d6d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/RuleAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,9 @@ public function executeActions($output, $params, array $input = [])
$regex_result
);
if ($res != null) {
$user = User::getFromDBbyEmail($res);
if ($user) {
$user = new User();
$user->getFromDBbyEmail($res);
if (isset($user->fields['id']) && $user->fields['id'] != 0) {
$output['users_id'] = $user->fields['id'];
}
}
Expand Down

0 comments on commit 8496d6d

Please sign in to comment.