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') { diff --git a/htdocs/core/class/fileupload.class.php b/htdocs/core/class/fileupload.class.php index ea8618c8b92..8e325fd13e2 100644 --- a/htdocs/core/class/fileupload.class.php +++ b/htdocs/core/class/fileupload.class.php @@ -1,5 +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 @@ -216,7 +216,7 @@ class FileUpload /** * Set delete url * - * @param string $file Filename + * @param object $file Filename * @return void */ protected function setFileDeleteUrl($file) @@ -301,7 +301,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 +538,7 @@ class FileUpload /** * Delete uploaded file * - * @return void + * @return string */ public function delete() {