From: Art4 Date: Sat, 30 Nov 2024 19:51:18 +0000 (+0000) Subject: Fix errors in pnut addon X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3f89aa180610b0ce0ead35c082ad43e3c702bcde;p=friendica-addons.git Fix errors in pnut addon --- diff --git a/pnut/lib/phpnut.php b/pnut/lib/phpnut.php index 5794d795..89d5e5f8 100644 --- a/pnut/lib/phpnut.php +++ b/pnut/lib/phpnut.php @@ -1339,6 +1339,8 @@ class phpnut */ protected function updateUserImage(string $image, string $which='avatar') { + $mimeType = ''; + $test = @getimagesize($image); if ($test && array_key_exists('mime', $test)) { $mimeType = $test['mime'];