Mercurial > hg > batmud > materials
changeset 11:2808bc76a2fa
Rename a variable.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 04 Jan 2016 10:47:50 +0200 |
parents | 8780755f38a1 |
children | 6523f431e731 |
files | info.php |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/info.php Mon Jan 04 10:45:20 2016 +0200 +++ b/info.php Mon Jan 04 10:47:50 2016 +0200 @@ -377,21 +377,21 @@ // Swap desired rows if (count($setSwapRows) > 0) { - $str = []; + $swapped = []; $nkeys = count($currTable); foreach ($setSwapRows as $from => $to) if ($from >= 0 && $from < $nkeys && $to >= 0 && $to < $nkeys && $to != $from) { - $str[] = $from." <=> ".$to; + $swapped[] = $from." <=> ".$to; $tmp = $currTable[$from]; $currTable[$from] = $currTable[$to]; $currTable[$to] = $tmp; } - if (count($str) > 0) + if (count($swapped) > 0) { - echo "<p>Swapped rows: ".implode(", ", $str)."</p>\n"; + echo "<p>Swapped rows: ".implode(", ", $swapped)."</p>\n"; } }