From 56d6dd06038a3fd193f239470891e80e81498cf6 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 20 May 2022 17:34:37 +0200 Subject: [PATCH 1/3] FIX scrutinizer --- htdocs/core/class/fileupload.class.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/htdocs/core/class/fileupload.class.php b/htdocs/core/class/fileupload.class.php index ea8618c8b92..552670cc12c 100644 --- a/htdocs/core/class/fileupload.class.php +++ b/htdocs/core/class/fileupload.class.php @@ -1,4 +1,6 @@ * Copyright (C) 2011-2012 Laurent Destailleur * @@ -216,7 +218,7 @@ class FileUpload /** * Set delete url * - * @param string $file Filename + * @param object $file Filename * @return void */ protected function setFileDeleteUrl($file) @@ -301,7 +303,7 @@ class FileUpload * Enter description here ... * * @param string $uploaded_file Uploade file - * @param string $file File + * @param object $file File * @param string $error Error * @param string $index Index * @return boolean True if OK, False if KO @@ -538,7 +540,7 @@ class FileUpload /** * Delete uploaded file * - * @return void + * @return string */ public function delete() { From 334baeffaaf3e086e71be07b44c5579270abcb8b Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 20 May 2022 17:37:36 +0200 Subject: [PATCH 2/3] FIX syntax error --- htdocs/core/class/fileupload.class.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/htdocs/core/class/fileupload.class.php b/htdocs/core/class/fileupload.class.php index 552670cc12c..8e325fd13e2 100644 --- a/htdocs/core/class/fileupload.class.php +++ b/htdocs/core/class/fileupload.class.php @@ -1,7 +1,5 @@ +/* Copyright (C) 2011-2022 Regis Houssin * Copyright (C) 2011-2012 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify From a302ffa5fb191aba4e61bf6d779ee5983a5a8581 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 20 May 2022 17:51:16 +0200 Subject: [PATCH 3/3] FIX wrong var name --- htdocs/compta/facture/prelevement.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/facture/prelevement.php b/htdocs/compta/facture/prelevement.php index 583626f0220..989fa28b2f0 100644 --- a/htdocs/compta/facture/prelevement.php +++ b/htdocs/compta/facture/prelevement.php @@ -281,8 +281,8 @@ if ($object->id > 0) { } $author = new User($db); - if ($object->user_author) { - $author->fetch($object->user_author); + if ($object->fk_user_author) { + $author->fetch($object->fk_user_author); } if ($type == 'bank-transfer') {