Commit b90e88bc authored by Francesc Guasch's avatar Francesc Guasch
Browse files

refactor: fix variable declared in conditional statement

parent b29627e0
......@@ -6447,7 +6447,8 @@ sub refresh_ports($self, $request=undef) {
if (($msg) && ($request))
{
my $uid = $request->args("uid");
my $user = Ravada::Auth::SQL->search_by_id($uid) if ($uid);
my $user;
$user = Ravada::Auth::SQL->search_by_id($uid) if ($uid);
$user->send_message($msg) if ($user);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment