dsoares / roundcube-lastlogin

Roundcube plugin to save and show user login information and login history.
GNU General Public License v3.0
16 stars 12 forks source link

PHP Warning with Roundcube 1.5.2 and 8.0.14 #34

Open STR07 opened 2 years ago

STR07 commented 2 years ago

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.

STR07 commented 2 years ago

Ps: We are currently using version 1.3.0 of lastlogin

kenokallinger commented 2 years ago

To fix this warning change line 216 to the following:

return $_SESSION['plugin.lastlogin.show_info'] ?? null;