From 89e3c8bec749c0e76cf145aa5b39e66d3cb7c59b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 20 Jul 2026 18:08:15 +0200 Subject: [PATCH] Doc --- htdocs/api/class/api_documents.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/api/class/api_documents.class.php b/htdocs/api/class/api_documents.class.php index 40eea243b8c..766841c5bfa 100644 --- a/htdocs/api/class/api_documents.class.php +++ b/htdocs/api/class/api_documents.class.php @@ -615,6 +615,7 @@ class Documents extends DolibarrApi $filearraytmp = dol_dir_list($upload_dir, $type, $recursive, '', '(\.meta|_preview.*\.png)$', $sortfield, (strtolower($sortorder) == 'desc' ? SORT_DESC : SORT_ASC), 1); $filearray = $filearraytmp; // We store answer into an array that we will extends with ecm data + /** @var $filearray array */ $countarray = count($filearray); $filearray = array_slice($filearray, $limit * $page, $limit); if (empty($filearray)) {