modified how items are found in the database and how this is processed.

This commit is contained in:
2019-05-31 23:55:23 -05:00
parent 2f333dac32
commit 0ce34f4135
4 changed files with 8 additions and 8 deletions

View File

@@ -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,