|
@@ -890,7 +890,7 @@ class UserServices extends BaseServices
|
|
|
$edit['card_id'] = $data['card_id'];
|
|
|
$edit['birthday'] = strtotime($data['birthday']);
|
|
|
$edit['mark'] = $data['mark'];
|
|
|
- $edit['is_promoter'] = $data['is_promoter'];
|
|
|
+ $edit['is_promoter'] = (isset($data['is_promoter']) && $data['is_promoter'] >= 0) ? $data['is_promoter'] : $user['is_promoter'];
|
|
|
$edit['level'] = $data['level'];
|
|
|
$edit['phone'] = $data['phone'];
|
|
|
$edit['addres'] = $data['addres'];
|