]> git.mxchange.org Git - friendica.git/commitdiff
Corrected variable
authorMichael <heluecht@pirati.ca>
Tue, 5 Jun 2018 05:44:04 +0000 (05:44 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 5 Jun 2018 05:44:04 +0000 (05:44 +0000)
include/api.php

index 881cb3309bb40aa5e7ecc0e42d7f7f98d5ed8024..91a8d42c46cddc9aff089b8d955a45d0a8cf0794 100644 (file)
@@ -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]";
                }
        }