Skip to content

Commit

Permalink
fix: [userloginprofiles] undefined variable #9424
Browse files Browse the repository at this point in the history
  • Loading branch information
cvandeplas committed Dec 1, 2023
1 parent 0934ab6 commit aac06b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Controller/UserLoginProfilesController.php
Expand Up @@ -147,7 +147,7 @@ private function __setTrust($logId, $status)
'order' => array('Log.created DESC')
));
$data = $this->UserLoginProfile->_fromLog($log['Log']);
if (!$loginProfile) return $data; // skip if empty logs
if (!$data) return $data; // skip if empty logs
$data['status'] = $status;
$data['user_id'] = $user['id'];
$data['hash'] = $this->UserLoginProfile->hash($data);
Expand Down

0 comments on commit aac06b2

Please sign in to comment.