Merge pull request #20916 from hregis/fix_scrutinizer

Fix scrutinizer
This commit is contained in:
Laurent Destailleur 2022-05-20 22:29:51 +02:00 committed by GitHub
commit d7f93826dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -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') {

View File

@ -1,5 +1,5 @@
<?php
/* Copyright (C) 2011-2012 Regis Houssin <regis.houssin@inodbox.com>
/* Copyright (C) 2011-2022 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2011-2012 Laurent Destailleur <eldy@users.sourceforge.net>
*
* 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()
{