|
@@ -66,7 +66,10 @@ Class Home extends Core
|
|
|
if ($uid) {
|
|
|
$where['where_id'] = $uid;
|
|
|
$where['name'] = $data['name'];
|
|
|
- $where['idcard'] = $data['idcard'];
|
|
|
+ if ($data['idcard']) {
|
|
|
+ $where['idcard'] = $data['idcard'];
|
|
|
+ }
|
|
|
+
|
|
|
Dever::db('active/user')->update($where);
|
|
|
}
|
|
|
$result = array();
|