diff --git a/app/controller/CustomerController.php b/app/controller/CustomerController.php index e345b77..a030cc4 100644 --- a/app/controller/CustomerController.php +++ b/app/controller/CustomerController.php @@ -267,7 +267,7 @@ class CustomerController } $userId = $request->user['id']; $id = Util::getParam($request, 'id'); - $where = ['user_id', '=', $userId]; + $where[] = ['user_id', '=', $userId]; $where[] = ['created_at', '>', strtotime($created.'-01')]; $customer = Customer::where($where)->count(); $whereVisit = $where;