added spaces and curly braces
Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
parent
67707247c8
commit
e503141b0c
|
@ -193,14 +193,14 @@ function profiles_post(App $a) {
|
||||||
|
|
||||||
$dob = $_POST['dob'] ? escape_tags(trim($_POST['dob'])) : '0000-00-00'; // FIXME: Needs to be validated?
|
$dob = $_POST['dob'] ? escape_tags(trim($_POST['dob'])) : '0000-00-00'; // FIXME: Needs to be validated?
|
||||||
|
|
||||||
$y = substr($dob,0,4);
|
$y = substr($dob, 0, 4);
|
||||||
if ((! ctype_digit($y)) || ($y < 1900)) {
|
if ((! ctype_digit($y)) || ($y < 1900)) {
|
||||||
$ignore_year = true;
|
$ignore_year = true;
|
||||||
} else {
|
} else {
|
||||||
$ignore_year = false;
|
$ignore_year = false;
|
||||||
}
|
}
|
||||||
if ($dob != '0000-00-00') {
|
if ($dob != '0000-00-00') {
|
||||||
if (strpos($dob,'0000-') === 0) {
|
if (strpos($dob, '0000-') === 0) {
|
||||||
$ignore_year = true;
|
$ignore_year = true;
|
||||||
$dob = substr($dob, 5);
|
$dob = substr($dob, 5);
|
||||||
}
|
}
|
||||||
|
@ -235,10 +235,10 @@ function profiles_post(App $a) {
|
||||||
|
|
||||||
$with = ((x($_POST,'with')) ? notags(trim($_POST['with'])) : '');
|
$with = ((x($_POST,'with')) ? notags(trim($_POST['with'])) : '');
|
||||||
|
|
||||||
if(! strlen($howlong)) {
|
if (! strlen($howlong)) {
|
||||||
$howlong = NULL_DATE;
|
$howlong = NULL_DATE;
|
||||||
} else {
|
} else {
|
||||||
$howlong = datetime_convert(date_default_timezone_get(),'UTC',$howlong);
|
$howlong = datetime_convert(date_default_timezone_get(), 'UTC', $howlong);
|
||||||
}
|
}
|
||||||
// linkify the relationship target if applicable
|
// linkify the relationship target if applicable
|
||||||
|
|
||||||
|
@ -249,7 +249,7 @@ function profiles_post(App $a) {
|
||||||
$withchanged = true;
|
$withchanged = true;
|
||||||
$prf = '';
|
$prf = '';
|
||||||
$lookup = $with;
|
$lookup = $with;
|
||||||
if (strpos($lookup,'@') === 0) {
|
if (strpos($lookup, '@') === 0) {
|
||||||
$lookup = substr($lookup, 1);
|
$lookup = substr($lookup, 1);
|
||||||
}
|
}
|
||||||
$lookup = str_replace('_',' ', $lookup);
|
$lookup = str_replace('_',' ', $lookup);
|
||||||
|
|
Loading…
Reference in a new issue