Merge pull request #12397 from HankG/fix-photo-get-without-scale-arg

Fix photo get without scale arg
pull/12410/head
Hypolite Petovan 2022-12-12 13:01:03 -05:00 zatwierdzone przez GitHub
commit 94801986b6
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -54,7 +54,7 @@ class Photo extends BaseApi
throw new HTTPException\BadRequestException('No photo id.');
}
$scale = (!empty($request['scale']) ? intval($request['scale']) : false);
$scale = (!empty($request['scale']) ? intval($request['scale']) : null);
$photo_id = $request['photo_id'];
// prepare json/xml output with data from database for the requested photo