]> git.mxchange.org Git - friendica-addons.git/commitdiff
Fix PHPStan error in tumblr addon
authorArt4 <art4@wlabs.de>
Wed, 26 Feb 2025 08:47:06 +0000 (08:47 +0000)
committerArt4 <art4@wlabs.de>
Wed, 26 Feb 2025 08:47:06 +0000 (08:47 +0000)
tumblr/tumblr.php

index 4415e2de370b6b60440ca7a393cdd803e6fda1f2..9e691bf2cc0662fc415ab67640b9fa7af0997ecc 100644 (file)
@@ -791,7 +791,7 @@ function tumblr_fetch_dashboard(int $uid, int $last_poll)
        $dashboard = tumblr_get($uid, 'user/dashboard', $parameters);
        if ($dashboard->meta->status > 399) {
                DI::logger()->notice('Error fetching dashboard', ['meta' => $dashboard->meta, 'response' => $dashboard->response, 'errors' => $dashboard->errors]);
-               return [];
+               return;
        }
 
        if (empty($dashboard->response->posts)) {