FIX saveFile by adding null in return (#28508)
* FIX saveFile by adding null in return * Update html_generic.modules.php --------- Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
parent
a0c4af7929
commit
7c36864ff9
1 changed files with 3 additions and 3 deletions
|
|
@ -166,9 +166,9 @@ class html_generic extends ModeleDon
|
|||
/**
|
||||
* Write the object to document file to disk
|
||||
*
|
||||
* @param string $path Path for the file
|
||||
* @param string $path Path for the file
|
||||
* @param string $contents Contents of the file
|
||||
* @return NULL
|
||||
* @return int Return code
|
||||
*/
|
||||
private function saveFile($path, $contents)
|
||||
{
|
||||
|
|
@ -178,7 +178,7 @@ class html_generic extends ModeleDon
|
|||
fclose($handle);
|
||||
dolChmod($path);
|
||||
|
||||
return;
|
||||
return 1;
|
||||
}
|
||||
|
||||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
||||
|
|
|
|||
Loading…
Reference in a new issue