From 7fe19b8c26440c1cd373a2239c75889ee345d91b Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Tue, 16 Jul 2019 22:45:51 -0500 Subject: [PATCH] srp form update --- app/Http/Controllers/SRP/SRPController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/SRP/SRPController.php b/app/Http/Controllers/SRP/SRPController.php index 760350da4..d624b2669 100644 --- a/app/Http/Controllers/SRP/SRPController.php +++ b/app/Http/Controllers/SRP/SRPController.php @@ -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) {