From e632be763ca06f3c634bff50bcf42bf7d571d0b2 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 5 Jun 2018 05:44:04 +0000 Subject: [PATCH] Corrected variable --- include/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]"; } }