Notice: Undefined index: token in drupalchat_user_logout()

Created on 10 March 2017, over 7 years ago
Updated 1 August 2023, 11 months ago

Every time a user logs out, a new notice is added in DB Log:

Notice: Undefined index: token in drupalchat_user_logout()

I've tracked down the issue and found that there is a code block on drupalchat_user_logout(), which meant to delete the commercial iFlyChat session token. This code block should have to be placed in the if-statement just above it, which explicitly checks if the site is using the commercial iFlyChat.

I've created a patch moving this code block into the if-statement.

Please review the patch.

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇩🇪Germany Elin Yordanov

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024