srp form update
This commit is contained in:
@@ -48,10 +48,8 @@ class SRPController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Get the user id and name, and store in the array
|
//Get the user id and name, and store in the array
|
||||||
$tempMain = [
|
$tempMain[auth()->user()->character_id] = auth()->user()->getName();
|
||||||
'character_id' => auth()->user()->character_id,
|
|
||||||
'name' => auth()->user()->getName(),
|
|
||||||
];
|
|
||||||
//Push the main into the array first
|
//Push the main into the array first
|
||||||
array_push($characters, $tempMain);
|
array_push($characters, $tempMain);
|
||||||
|
|
||||||
@@ -63,12 +61,7 @@ class SRPController extends Controller
|
|||||||
])->get();
|
])->get();
|
||||||
|
|
||||||
foreach($alts as $alt) {
|
foreach($alts as $alt) {
|
||||||
$temp = [
|
$temp[$alt->character_id] = $alt->name;
|
||||||
'character_id' => $alt->character_id,
|
|
||||||
'name' => $alt->name,
|
|
||||||
];
|
|
||||||
|
|
||||||
array_push($characters, $temp);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user