From f11943126a638783a740258c8f77426366db48db Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 8 Nov 2019 09:42:39 +0100 Subject: [PATCH] Fix scrutinizer --- htdocs/core/tpl/document_actions_post_headers.tpl.php | 2 +- htdocs/product/inventory/class/inventory.class.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/core/tpl/document_actions_post_headers.tpl.php b/htdocs/core/tpl/document_actions_post_headers.tpl.php index 692c9cf3494..9fe6946d89d 100644 --- a/htdocs/core/tpl/document_actions_post_headers.tpl.php +++ b/htdocs/core/tpl/document_actions_post_headers.tpl.php @@ -120,5 +120,5 @@ $formfile->list_of_documents( print "
"; //List of links -$formfile->listOfLinks($object, $permission, $action, GETPOST('linkid', 'int'), $param, $relativepathwithnofile); +$formfile->listOfLinks($object, $permission, $action, GETPOST('linkid', 'int'), $param); print "
"; diff --git a/htdocs/product/inventory/class/inventory.class.php b/htdocs/product/inventory/class/inventory.class.php index e93942d16d4..be6ca6aa930 100644 --- a/htdocs/product/inventory/class/inventory.class.php +++ b/htdocs/product/inventory/class/inventory.class.php @@ -396,6 +396,7 @@ class Inventory extends CommonObject // phpcs:enable global $langs; + $labelStatus = array(); $labelStatus[self::STATUS_DRAFT] = $langs->trans('Draft'); $labelStatus[self::STATUS_VALIDATED] = $langs->trans('Enabled'); $labelStatus[self::STATUS_CANCELED] = $langs->trans('Canceled');