diff --git a/app/Http/Controllers/ActivityController.php b/app/Http/Controllers/ActivityController.php index a0282e2..74da8c8 100644 --- a/app/Http/Controllers/ActivityController.php +++ b/app/Http/Controllers/ActivityController.php @@ -465,7 +465,7 @@ class ActivityController extends Controller $activity->save(); $activity->level = $activity_row['level']; } - if (isset($data['activities'][$i]['nik'])) { + if (isset($data['activities'][$i]['nik']) && $data['activities'][$i]['nik'] != '') { $user = User::where("ktp_number", $data['activities'][$i]['nik'])->first(); $userProyek = UserToProyek::where("user_id", $user->id) ->where("proyek_id", $projectId)