MDL-69110 table: Remove commented code
authorAndrew Nicols <andrew@nicols.co.uk>
Mon, 6 Jul 2020 05:25:31 +0000 (13:25 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Mon, 6 Jul 2020 05:25:31 +0000 (13:25 +0800)
lib/tablelib.php

index 476fd9b..78bade9 100644 (file)
@@ -1306,7 +1306,6 @@ class flexible_table {
 
             if (array_key_exists($sortby, $sortdata)) {
                 // This key already exists somewhere. Change its sortorder and bring it to the top.
-                //$sortorder = $sortdata[$sortby] = $sortorder;
                 unset($sortdata[$sortby]);
             }
             $sortdata = array_merge([$sortby => $sortorder], $sortdata);