Project

General

Profile

Actions

Bug #8697

closed

[J4] Missing user causes CmsUser API call to error

Added by krileon about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
Start date:
02 September 2021
Due date:
% Done:

100%

Estimated time:

Description

A missing user causes JUser::getInstance to return an uninitialized user object on J4. This results in `id` being NULL instead of 0. Need to use a guest object when this happens so it has initialized values.

Actions

Also available in: Atom PDF