diff --git a/inc/spbc-settings.php b/inc/spbc-settings.php index 3dcbae5c..c60dbf6a 100644 --- a/inc/spbc-settings.php +++ b/inc/spbc-settings.php @@ -3301,7 +3301,7 @@ function spbc_field_scanner() //show backups link printf( __('%sBackups%s', 'security-malware-firewall'), - ' ', + ' ', '' ); echo '

'; diff --git a/lib/CleantalkSP/SpbctWP/RemoteCalls.php b/lib/CleantalkSP/SpbctWP/RemoteCalls.php index 8f8b89c2..7862e803 100644 --- a/lib/CleantalkSP/SpbctWP/RemoteCalls.php +++ b/lib/CleantalkSP/SpbctWP/RemoteCalls.php @@ -318,12 +318,15 @@ public static function action__debug() // phpcs:ignore PSR1.Methods.CamelCapsMet $out['settings'] = $spbc->settings; $out['fw_stats'] = $spbc->fw_stats; $out['data'] = $spbc->data; + $logs = array(); foreach (Repository::getAll() as $record) { if (!empty($record['content']) && is_string($record['content']) && !empty($record['timestamp']) && strpos($record['content'], 'OK') === false) { $logs[date('Y-m-d H:i:s', $record['timestamp'])] = ': ' . $record['content']; } } - $out['last_scan_log'] = array_reverse($logs); + if ($logs) { + $out['last_scan_log'] = array_reverse($logs); + } $out['cron'] = $spbc->cron; $out['errors'] = $spbc->errors; $out['debug'] = $spbc->debug;