]> git.mxchange.org Git - friendica-addons.git/commitdiff
Fix errors in pnut addon
authorArt4 <art4@wlabs.de>
Sat, 30 Nov 2024 19:51:18 +0000 (19:51 +0000)
committerArt4 <art4@wlabs.de>
Sat, 30 Nov 2024 19:51:18 +0000 (19:51 +0000)
pnut/lib/phpnut.php

index 5794d795a9cdb8898a60f05d8524815a65a6d951..89d5e5f895e67e76a1c54b8a3779a20b08c87e6f 100644 (file)
@@ -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'];