From 5db96c059f22e5cbffaa6774e27be1becc9dc7cd Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 15 Jun 2024 09:16:49 -0400 Subject: [PATCH] users clean up --- app/Controllers/Users.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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