|
@@ -139,7 +139,7 @@ Class Home extends Core
|
|
if (!$user['idcard'] && $data['idcard']) {
|
|
if (!$user['idcard'] && $data['idcard']) {
|
|
$where['idcard'] = $data['idcard'];
|
|
$where['idcard'] = $data['idcard'];
|
|
}
|
|
}
|
|
- if ($where) {
|
|
|
|
|
|
+ if ($where['name'] || $where['idcard']) {
|
|
Dever::db('active/user')->update($where);
|
|
Dever::db('active/user')->update($where);
|
|
}
|
|
}
|
|
}
|
|
}
|