]> git.mxchange.org Git - friendica.git/commitdiff
Fix condition in dfrn_request_content() when $a->profile isn't set
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 29 May 2019 01:14:21 +0000 (21:14 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Wed, 29 May 2019 01:14:21 +0000 (21:14 -0400)
See https://github.com/friendica/friendica/issues/6917#issuecomment-494087890

mod/dfrn_request.php

index 780e0afeeb7feb146129ca660887d50a415a96b5..19879c21bb334ddc35d94b98505cee1bd2e6f3c6 100644 (file)
@@ -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 "";
        }