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 18, 2024
1 parent 492e0e6 commit aa07e55
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions api/ui/results.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ public function get() {
//echo $arr;
$jsonJob = json_decode($arr, true);
foreach ($jsonJob as $job) {
//echo gettype($job) . "<br>";
// $job[0] should be ID
var_dump($job);
if($job == $id) {
echo "found in job. \n";
}
Expand All @@ -89,22 +88,13 @@ public function get() {
echo "found in element.\n";
break;
}
if (gettype($element) == 'string') {
echo $element;
}
else { // $element is an array
foreach ($element as $e) {
if (gettype($e) == 'string') {
echo $e;
}
if($e == $id) {
echo "found in e.\n";
}
if (gettype($e)=='array') {
foreach ($e as $ok) {
if (gettype($ok) == 'string') {
echo $ok;
}
if ($ok == $id) {
echo "found in e.\n";
}
Expand Down

0 comments on commit aa07e55

Please sign in to comment.