From 696a832ef731996a712c88c5439f032a5376f5e4 Mon Sep 17 00:00:00 2001 From: bagtaib Date: Wed, 6 Jul 2022 10:16:03 +0200 Subject: [PATCH] add default value for picto --- htdocs/modulebuilder/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/modulebuilder/index.php b/htdocs/modulebuilder/index.php index b6bcf74cc9e..3416c1c69b8 100644 --- a/htdocs/modulebuilder/index.php +++ b/htdocs/modulebuilder/index.php @@ -344,7 +344,7 @@ if ($dirins && $action == 'initmodule' && $modulename) { 'Editor name'=>$editorname, 'https://www.example.com'=>$editorurl, '1.0'=>$version, - 'idpicto'=>$picto, + 'idpicto'=>(empty($picto)) ? 'generic' : $picto, "modulefamily" =>$family, 500000=>$idmodule );