]> git.mxchange.org Git - friendica.git/commitdiff
Object error
authorAdam Magness <adam.magness@gmail.com>
Thu, 30 Nov 2017 12:48:47 +0000 (07:48 -0500)
committerAdam Magness <adam.magness@gmail.com>
Thu, 30 Nov 2017 12:48:47 +0000 (07:48 -0500)
Uncaught Error: Using $this when not in object context

src/Object/Photo.php

index d0f6776618227e0aaf01f3547a52a201074febd8..5d8ad6b3a756be129eb8a8db130a3c7484b1185f 100644 (file)
@@ -839,7 +839,7 @@ class Photo
                        return false;
                }
        
-               $type = $this->guessImageType($photo, true);
+               $type = self::guessImageType($photo, true);
                $img = new Photo($img_str, $type);
                if ($img->isValid()) {
                        $img->scaleImageSquare(175);