roundcube-lastlogin icon indicating copy to clipboard operation
roundcube-lastlogin copied to clipboard

PHP Warning with Roundcube 1.5.2 and 8.0.14

Open STR07 opened this issue 4 years ago • 2 comments

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 avatar Jan 02 '22 20:01 STR07

Ps: We are currently using version 1.3.0 of lastlogin

STR07 avatar Jan 02 '22 20:01 STR07

To fix this warning change line 216 to the following:

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

kenokallinger avatar Jan 04 '22 18:01 kenokallinger