PHP 7.4 compability
-
When I upgraded to WordPress 5.3.2 with PHP 7.4.1 I’m getting this message:
Notice: Trying to access array offset on value of type bool in /var/www/html/public/app/plugins/when-last-login/when-last-login.php on line 257
Row 257 to 263 is:
$show = $settings['show_all_login_records']; if( 1 === $show ) { $show = true; }else{ $show = false; }As a quick fix I replaced the above with this:
$show = (!empty($settings['show_all_login_records']) AND $settings['show_all_login_records'] === 1);But yes, it would be nice if this plugin have full PHP 7.4 comparability.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘PHP 7.4 compability’ is closed to new replies.