diff --git a/app/Controllers/Users.php b/app/Controllers/Users.php index 0ab658d..0b6227e 100644 --- a/app/Controllers/Users.php +++ b/app/Controllers/Users.php @@ -30,8 +30,11 @@ class Users extends BaseController ]; return $this->respond($data, 200); } + else{ + return $this->respond(['error'=>'empty uid'], 400); + } - return $this->respond([], 400); + //return $this->respond([], 400); } private function userLoan($uid){ @@ -53,9 +56,11 @@ class Users extends BaseController 'customer' => $row ]; return $this->respond($data, 200); + }else{ + return $this->respond(['error'=>'empty uid'], 400); } - return $this->respond([], 400); + // return $this->respond([], 400); } } \ No newline at end of file