Skip to content

Commit

Permalink
Expermineting to drag results
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrikBuetler committed Jun 24, 2024
1 parent 28b76d3 commit 8281bf2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/ui/Rearranger.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8281bf2

Please sign in to comment.