X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fprofiles.php;h=6a32fbee5a75e916d0143b4b880ce35552d41b97;hb=75daf9659092c5854808adbf5d735c193e6a09fd;hp=459a1c5e75a73fc1e0030933fe2d051499b6d0f9;hpb=218f0734be88e3a504680dd06b917f78787ec8bc;p=friendica.git diff --git a/mod/profiles.php b/mod/profiles.php index 459a1c5e75..6a32fbee5a 100644 --- a/mod/profiles.php +++ b/mod/profiles.php @@ -216,7 +216,7 @@ function profiles_post(App $a) { } else { $ignore_year = false; } - if (!in_array($dob, ['0000-00-00', '0001-01-01'])) { + if (!in_array($dob, ['0000-00-00', DBA::NULL_DATE])) { if (strpos($dob, '0000-') === 0 || strpos($dob, '0001-') === 0) { $ignore_year = true; $dob = substr($dob, 5); @@ -251,7 +251,7 @@ function profiles_post(App $a) { $marital = Strings::escapeTags(trim($_POST['marital'])); $howlong = Strings::escapeTags(trim($_POST['howlong'])); - $with = ((x($_POST,'with')) ? Strings::escapeTags(trim($_POST['with'])) : ''); + $with = (!empty($_POST['with']) ? Strings::escapeTags(trim($_POST['with'])) : ''); if (! strlen($howlong)) { $howlong = DBA::NULL_DATETIME;