[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] File Galleries: File uploads produce PHP Warning: Undefined variable ...

Benoit Grégoire (@benoitg) via TikiWiki-cvs <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <68a4998f9e84e_2dd6ce0-157@gitlab-sidekiq-low-urgency-cpu-bound-v2-7d84497f66-njpzd.mail>

Benoit Grégoire pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
b4ee2d8f by Adrien Mbuya Maloba at 2025-08-19T15:26:45+00:00
[FIX] File Galleries: File uploads produce PHP Warning:  Undefined variable  in lib\filegals\FileGalLib.php on line 3427
---
* [FIX] File Galleries: File uploads produce PHP Warning:  Undefined variable  in lib\filegals\FileGalLib.php on line 3427

See merge request tikiwiki/tiki!8314

- - - - -


1 changed file:

- lib/Filegals/FileGalLib.php


Changes:

=====================================
lib/Filegals/FileGalLib.php
=====================================
@@ -3424,7 +3424,7 @@ class FileGalLib extends TikiLib
                     }
 
                     if (empty($params['name'][$key])) {
-                        $params['name'][$key] = $this->generateDisplayNameFromFilename($name, $galleryId);
+                        $params['name'][$key] = $this->generateDisplayNameFromFilename($name, (int) $params['galleryId']);
                     }
 
                     if (empty($params['deleteAfter'][$key]) || empty($params['deleteAfter_unit'][$key])) {



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/b4ee2d8fa9a342e74e8d2155de425e3e5f0bcc71

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/b4ee2d8fa9a342e74e8d2155de425e3e5f0bcc71
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.