diff --git a/admin/tool/httpsreplace/cli/url_replace.php b/admin/tool/httpsreplace/cli/url_replace.php index 7945a772af0..b8e41163691 100644 --- a/admin/tool/httpsreplace/cli/url_replace.php +++ b/admin/tool/httpsreplace/cli/url_replace.php @@ -83,7 +83,7 @@ if ($options['replace']) { $urlfinder = new \tool_httpsreplace\url_finder(); $results = $urlfinder->http_link_stats(); - asort($urlfinder); + asort($results); $fp = fopen('php://stdout', 'w'); fputcsv($fp, ['clientsite', 'httpdomain', 'urlcount']); foreach ($results as $domain => $count) {