Skip to content

Make sure we actually have session data before trying to set it - #9858

Merged
jdarwood007 merged 2 commits into
SimpleMachines:release-3.0from
Oldiesmann:smf3
Nov 9, 2026
Merged

jdarwood007 merged 2 commits into
SimpleMachines:release-3.0from
Oldiesmann:smf3

Conversation

@Oldiesmann

Copy link
Copy Markdown
Contributor

On my local test boards, I'm seeing "Cannot use bool as array" errors from Session.php in the error log immediately after visiting one of the boards for the first time as a guest (such as in a private window). When the session starts, there won't be any data in the database for the forum to load, but we always assume there is. This remedies that situation by making sure we actually have info before trying to assign those values to an array.

Signed-off-by: oldiesmann <oldiesmann@gmail.com>
Signed-off-by: oldiesmann <oldiesmann@gmail.com>
@jdarwood007 jdarwood007 added this to the 3.0 Alpha 5 milestone Nov 9, 2026
@jdarwood007
jdarwood007 merged commit 28a2380 into SimpleMachines:release-3.0 Nov 9, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants