aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2022-11-17 08:03:05 +0100
committerGitHub <noreply@github.com>2022-11-17 08:03:05 +0100
commitd27a39271e39d043caff3fe4d8538748ca22b18d (patch)
treec0798503dadcdf84947434ee931b6165b0390069 /lib
parent0f3150cff78c152e631cad65fd982f8d969bb41c (diff)
downloadnextcloud-server-d27a39271e39d043caff3fe4d8538748ca22b18d.tar.gz
nextcloud-server-d27a39271e39d043caff3fe4d8538748ca22b18d.zip
getAppValue expects string
Co-authored-by: Pytal <24800714+Pytal@users.noreply.github.com> Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/legacy/OC_Image.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/legacy/OC_Image.php b/lib/private/legacy/OC_Image.php
index 22098d7643d..b48d13c4d5b 100644
--- a/lib/private/legacy/OC_Image.php
+++ b/lib/private/legacy/OC_Image.php
@@ -415,7 +415,7 @@ class OC_Image implements \OCP\IImage {
* @return int|null
*/
protected function getJpegQuality() {
- $quality = $this->config->getAppValue('preview', 'jpeg_quality', 80);
+ $quality = $this->config->getAppValue('preview', 'jpeg_quality', '80');
if ($quality !== null) {
$quality = min(100, max(10, (int) $quality));
}