diff --git a/lib/CleantalkSP/SpbctWP/Scanner/ScannerQueue.php b/lib/CleantalkSP/SpbctWP/Scanner/ScannerQueue.php index 51a6751b5..de65a86c8 100755 --- a/lib/CleantalkSP/SpbctWP/Scanner/ScannerQueue.php +++ b/lib/CleantalkSP/SpbctWP/Scanner/ScannerQueue.php @@ -2193,6 +2193,10 @@ public function send_results() // phpcs:ignore PSR1.Methods.CamelCapsMethodName. $signatures_found = isset($spbc->data['scanner']['signatures_found']) ? $spbc->data['scanner']['signatures_found'] : []; $signatures_found = json_encode($signatures_found); + if ( is_null($signatures_count) && is_string($signatures_found) ) { + $signatures_count = count(json_decode($signatures_found, true)); + } + // API. Sending files scan result $result = API::method__security_mscan_logs( $key,