diff --git a/IdnoPlugins/Photo/Photo.php b/IdnoPlugins/Photo/Photo.php index 7d0697e2d2..525878902f 100644 --- a/IdnoPlugins/Photo/Photo.php +++ b/IdnoPlugins/Photo/Photo.php @@ -110,10 +110,13 @@ function saveDataFromInput() } } else { $exif = false; - // Admins get a no-EXIF error - if (\Idno\Core\Idno::site()->session()->isAdmin()) { - \Idno\Core\Idno::site()->logging()->log("Because your server doesn't provide EXIF support, Known can't preserve any rotation information in this image."); - \Idno\Core\Idno::site()->session()->addErrorMessage("Because your server doesn't provide EXIF support, Known can't preserve any rotation information in this image."); + + if (!is_callable('exif_read_data')) { + // Admins get a no-EXIF error + if (\Idno\Core\Idno::site()->session()->isAdmin()) { + \Idno\Core\Idno::site()->logging()->log("Because your server doesn't provide EXIF support, Known can't preserve any rotation information in this image."); + \Idno\Core\Idno::site()->session()->addErrorMessage("Because your server doesn't provide EXIF support, Known can't preserve any rotation information in this image."); + } } }