diff --git a/api/ui/Rearranger.php b/api/ui/Rearranger.php index deba69ee62..e4613fef22 100644 --- a/api/ui/Rearranger.php +++ b/api/ui/Rearranger.php @@ -43,10 +43,10 @@ public function seekAndSwap($array, $goal, $direction) { } if(isset($temparray) && isset($tempkey)) { echo "\nInitiating swap.. Key: " . $tempkey . "\n"; - $temparray = $this->swap($temparray, $goal, $tempkey, $direction); + $array = $this->swap($temparray, $goal, $tempkey, $direction); echo "Returning the array: \n"; - print_r($temparray, false); - return $temparray; + print_r($array, false); + return $array; } } return $array;