Skip to content

Commit

Permalink
Update Tools.php
Browse files Browse the repository at this point in the history
  • Loading branch information
wdammak authored Oct 26, 2020
1 parent b9d4a19 commit a3bc316
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion classes/Tools.php
Original file line number Diff line number Diff line change
Expand Up @@ -3733,7 +3733,9 @@ public static function spreadAmount($amount, $precision, &$rows, $column)
return;
}

uasort($rows, function ($a, $b) { return $b['$column'] > $a['$column'] ? 1 : -1; });
$sort_function = create_function('$a, $b', "return \$b['$column'] > \$a['$column'] ? 1 : -1;");

uasort($rows, $sort_function)

$unit = pow(10, $precision);

Expand Down

0 comments on commit a3bc316

Please sign in to comment.