Browse Source

Code adjustment #488

Tobias Reich 8 years ago
parent
commit
ea3921b5d9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      php/Modules/Photo.php

+ 1 - 1
php/Modules/Photo.php

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