modified how items are found in the database and how this is processed.
This commit is contained in:
@@ -202,8 +202,8 @@ class AdminController extends Controller
|
||||
$found = AllowedLogin::where([
|
||||
'entity_type' => $request->allowedentityType,
|
||||
'entity_name' => $request->allowedEntityName,
|
||||
])->get();
|
||||
if($found != null) {
|
||||
])->count();
|
||||
if($found != 0) {
|
||||
AllowedLogin::where([
|
||||
'entity_type' => $request->allowedEntityType,
|
||||
'entity_name' => $request->allowedEntityName,
|
||||
|
||||
@@ -369,9 +369,9 @@ class MoonsAdminController extends Controller
|
||||
'Planet' => $request->planet,
|
||||
'Moon' => $request->moon,
|
||||
'Contact' => $contact,
|
||||
])->first();
|
||||
])->count();
|
||||
|
||||
if($found) {
|
||||
if($found != 0) {
|
||||
MoonRental::where([
|
||||
'System' => $request->system,
|
||||
'Planet' => $request->planet,
|
||||
|
||||
Reference in New Issue
Block a user