From 34b1e380b43bf9a228d9278b9766e0a3a188014e Mon Sep 17 00:00:00 2001 From: Michael Hamann Date: Sat, 30 Mar 2013 23:23:59 +0100 Subject: [PATCH] Fix infinite loop in some move scenarios --- helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper.php b/helper.php index c5a1139..8c15517 100644 --- a/helper.php +++ b/helper.php @@ -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; }