From: Michael Date: Tue, 5 Jun 2018 05:44:04 +0000 (+0000) Subject: Corrected variable X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e632be763ca06f3c634bff50bcf42bf7d571d0b2;p=friendica.git Corrected variable --- diff --git a/include/api.php b/include/api.php index 881cb3309b..91a8d42c46 100644 --- a/include/api.php +++ b/include/api.php @@ -1253,7 +1253,7 @@ function api_statuses_update($type) if (x($_FILES, 'media')) { // upload the image if we have one $picture = wall_upload_post($a, false); - if (is_array($media)) { + if (is_array($picture)) { $_REQUEST['body'] .= "\n\n" . '[url=' . $picture["albumpage"] . '][img]' . $picture["preview"] . "[/img][/url]"; } }