Code adjustment #488

pull/490/head
Tobias Reich 8 years ago
parent aba1629f31
commit ea3921b5d9

@ -846,7 +846,7 @@ final class Photo {
// Get extension // Get extension
$extension = getExtension($photo->url, true); $extension = getExtension($photo->url, true);
if (empty($extension)) { if (empty($extension)===true) {
Log::error(Database::get(), __METHOD__, __LINE__, 'Invalid photo extension'); Log::error(Database::get(), __METHOD__, __LINE__, 'Invalid photo extension');
return false; return false;
} }

Loading…
Cancel
Save