roundcube-lastlogin
roundcube-lastlogin copied to clipboard
PHP Warning with Roundcube 1.5.2 and 8.0.14
I get a warning when using Roudcube 1.5.2 and the plugin: lastlogin with PHP 8.0.14.
The following warning occurs at login and logout with the lastlogin-plugin and only exists since the PHP 8.0.14. update.
[02-Jan-2022 19:35:20 Europe/Berlin] PHP Warning: Undefined array key "plugin.lastlogin.show_info" in /var/www/html/webmail/plugins/lastlogin/lastlogin.php on line 216
Thank you very much in advance.
Ps: We are currently using version 1.3.0 of lastlogin
To fix this warning change line 216 to the following:
return $_SESSION['plugin.lastlogin.show_info'] ?? null;