Your Name 3 năm trước cách đây
mục cha
commit
1a9349088b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      learn/active/src/Home.php

+ 1 - 1
learn/active/src/Home.php

@@ -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); 
 			}
 			}
 		}
 		}