Object error

Uncaught Error: Using $this when not in object context
This commit is contained in:
Adam Magness 2017-11-30 07:48:47 -05:00
parent 00ad255540
commit cddadb4b17

View File

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