|
@@ -160,13 +160,11 @@ class LuticateUsersBusiness extends LuBusiness {
|
160
|
160
|
|
161
|
161
|
public static function edit($user_id, $firstname, $lastname, $email)
|
162
|
162
|
{
|
163
|
|
- if ($user_id != 0) {
|
164
|
|
- $user = self::checkUserId($user_id);
|
165
|
|
- $user->setEmail($email);
|
166
|
|
- $user->setFirstname($firstname);
|
167
|
|
- $user->setLastname($lastname);
|
168
|
|
- LuticateUsersDataAccess::editById($user_id, $user);
|
169
|
|
- }
|
|
163
|
+ $user = self::checkUserId($user_id);
|
|
164
|
+ $user->setEmail($email);
|
|
165
|
+ $user->setFirstname($firstname);
|
|
166
|
+ $user->setLastname($lastname);
|
|
167
|
+ LuticateUsersDataAccess::editById($user_id, $user);
|
170
|
168
|
return true;
|
171
|
169
|
}
|
172
|
170
|
|