srp form update

This commit is contained in:
2019-07-16 22:45:51 -05:00
parent 5c4aecab55
commit 7fe19b8c26

View File

@@ -56,10 +56,10 @@ class SRPController extends Controller
array_push($characters, $tempMain);
//Get the alts and store in the array
$altCount = UserAlt::where(['main' => auth()->user()->character_id])->count();
$altCount = UserAlt::where(['main_id' => auth()->user()->character_id])->count();
if($altCount > 0) {
$alts = UserAlt::where([
'main' => auth()->user()->character_id,
'main_id' => auth()->user()->character_id,
])->get();
foreach($alts as $alt) {