From 91f015171fd280129ba01f846fba1f50a2656434 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mudr=C3=A1k?= Date: Wed, 18 Oct 2017 19:44:58 +0200 Subject: [PATCH] MDL-46269 tool_httpsreplace: Fix incorrect sorting --- admin/tool/httpsreplace/cli/url_replace.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {