From: Hypolite Petovan Date: Wed, 29 May 2019 01:14:21 +0000 (-0400) Subject: Fix condition in dfrn_request_content() when $a->profile isn't set X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8f4dbec696eed526a81d5c85ac773fc38b5c758c;p=friendica.git Fix condition in dfrn_request_content() when $a->profile isn't set See https://github.com/friendica/friendica/issues/6917#issuecomment-494087890 --- diff --git a/mod/dfrn_request.php b/mod/dfrn_request.php index 780e0afeeb..19879c21bb 100644 --- a/mod/dfrn_request.php +++ b/mod/dfrn_request.php @@ -476,7 +476,7 @@ function dfrn_request_post(App $a) function dfrn_request_content(App $a) { - if (($a->argc != 2) || (!count($a->profile))) { + if ($a->argc != 2 || empty($a->profile)) { return ""; }