From 8f4dbec696eed526a81d5c85ac773fc38b5c758c Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 28 May 2019 21:14:21 -0400 Subject: [PATCH] Fix condition in dfrn_request_content() when $a->profile isn't set See https://github.com/friendica/friendica/issues/6917#issuecomment-494087890 --- mod/dfrn_request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ""; } -- 2.39.5