diff --git a/include/api.php b/include/api.php index c59ecd016a..5a2248e6e7 100644 --- a/include/api.php +++ b/include/api.php @@ -4100,7 +4100,7 @@ function api_fr_photo_create_update($type) $mode = "update"; // check if photo is existing in databasei - if (!Photo::exists($photo_id, ['uid' => api_user(), 'album' => $album]) { + if (!Photo::exists($photo_id, ['uid' => api_user(), 'album' => $album])) { throw new BadRequestException("photo not available"); } }