Error in view/Dashboard.php
-
$stats = array(); if ( ! $stats['block_ip'] ) { $stats['block_ip'] = '-'; } if ( ! $stats['alerts'] ) { $stats['alerts'] = '-'; }This is 113-120 block code in wp-content/plugins/hide-my-wp/view/Dashboard.php
To fix problem
( ! $stats[‘block_ip’] ) change to ( empty($stats[‘block_ip’]) )
( ! $stats[‘alerts’] ) change to ( empty($stats[‘alerts’]) )
OR:
$stats[‘block_ip’] = $stats[‘block_ip’] ?? ‘-‘;
$stats[‘alerts’] = $stats[‘alerts’] ?? ‘-‘;
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.