From bdbce20f91b7938fb33ae49962111bb000d60ffc Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Mon, 20 Feb 2023 08:12:16 -0800 Subject: [PATCH] base: byval for getPreviewFromImageList (#25) --- lib/Controller/ApiBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Controller/ApiBase.php b/lib/Controller/ApiBase.php index 9ec93740..7bfe6e88 100644 --- a/lib/Controller/ApiBase.php +++ b/lib/Controller/ApiBase.php @@ -297,7 +297,7 @@ class ApiBase extends Controller /** * Given a list of file ids, return the first preview image possible. */ - protected function getPreviewFromImageList(array &$list, int $quality = 512) + protected function getPreviewFromImageList(array $list, int $quality = 512) { // Get preview manager $previewManager = \OC::$server->get(\OCP\IPreview::class);