diff --git a/htdocs/resource/class/html.formresource.class.php b/htdocs/resource/class/html.formresource.class.php
index 04b9a9f6f13..c850faaa5eb 100644
--- a/htdocs/resource/class/html.formresource.class.php
+++ b/htdocs/resource/class/html.formresource.class.php
@@ -1,5 +1,6 @@
+ * Copyright (C) 2019 Frédéric France
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -85,7 +86,7 @@ class FormResource
$resourcestat = new Dolresource($this->db);
- $resources_used = $resourcestat->fetch_all('ASC', 't.rowid', $limit, $offset, $filter);
+ $resources_used = $resourcestat->fetch_all('ASC', 't.rowid', $limit, 0, $filter);
if ($outputmode != 2)
{
@@ -194,17 +195,17 @@ class FormResource
if ($empty && empty($arraytypes['code'])) continue;
if ($format == 0) print '';
}