Skip to content

Commit

Permalink
Fix infinite loop in some move scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
michitux committed Mar 30, 2013
1 parent f102d50 commit 34b1e38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ protected function resolve_moves($moves, $id) {
while($changed) {
$changed = false;
foreach($tmp_moves as $old => $new) {
if($old != $new && isset($moves[$new]) && $moves[$new] != $new) {
if($old != $new && isset($moves[$new]) && $moves[$new] != $new && $tmp_moves[$new] != $new) {
$tmp_moves[$old] = $moves[$new];
$changed = true;
}
Expand Down

0 comments on commit 34b1e38

Please sign in to comment.