Skip to content

Commit

Permalink
Update src/RuleAsset.php
Browse files Browse the repository at this point in the history
Co-authored-by: Cédric Anne <cedric.anne@gmail.com>
  • Loading branch information
Lainow and cedric-anne committed May 14, 2024
1 parent 8496d6d commit e79fadf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/RuleAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,7 @@ public function executeActions($output, $params, array $input = [])
);
if ($res != null) {
$user = new User();
$user->getFromDBbyEmail($res);
if (isset($user->fields['id']) && $user->fields['id'] != 0) {
if ($user->getFromDBbyEmail($res)) {
$output['users_id'] = $user->fields['id'];
}
}
Expand Down

0 comments on commit e79fadf

Please sign in to comment.