From 7c36864ff9ea86eba1fe616d606cf070f2b2ab42 Mon Sep 17 00:00:00 2001 From: lamrani abdelwadoud Date: Wed, 28 Feb 2024 20:03:26 +0100 Subject: [PATCH] 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 --- htdocs/core/modules/dons/html_generic.modules.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/core/modules/dons/html_generic.modules.php b/htdocs/core/modules/dons/html_generic.modules.php index fa16c9a03b1..49bd1a7a29a 100644 --- a/htdocs/core/modules/dons/html_generic.modules.php +++ b/htdocs/core/modules/dons/html_generic.modules.php @@ -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