]> git.mxchange.org Git - friendica.git/blobdiff - mod/profiles.php
Replace x() by isset(), !empty() or defaults()
[friendica.git] / mod / profiles.php
index fe3b362317f86e38617e3e53e8cc52a2c8656d68..6a32fbee5a75e916d0143b4b880ce35552d41b97 100644 (file)
@@ -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;