|
@@ -218,12 +218,14 @@ class Base extends EnterpriseController {
|
|
|
$where[] = ["active", "=", 1];
|
|
|
$where[] = ["delete", "=", 0];
|
|
|
$filetypes = Db::table("new_common_filetype")->where($where)->select()->toArray();
|
|
|
-
|
|
|
- $birthday = $param["birthday"];
|
|
|
- $birthdayYear = substr($birthday, 0, 4);
|
|
|
- $currentYear = date("Y");
|
|
|
- $age = $currentYear - $birthdayYear;
|
|
|
|
|
|
+ $age = 0;
|
|
|
+ if ($param["birthday"]) {
|
|
|
+ $birthday = $param["birthday"];
|
|
|
+ $birthdayYear = substr($birthday, 0, 4);
|
|
|
+ $currentYear = date("Y");
|
|
|
+ $age = $currentYear - $birthdayYear;
|
|
|
+ }
|
|
|
$ft_ids = [];
|
|
|
$deletes = [];
|
|
|
foreach ($filetypes as $ft) {
|