This is rubbish. The original function fetch the Linux User on the Server, while the second function fetch the Joomla User. Two entirely different things.So I have changed this line
$user = get_current_user();
to this
$user = Factory::getUser();
Statistics: Posted by Per Yngve Berg — Sun Aug 11, 2024 1:27 pm