[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] PHP 8.5 notice: undefined array key fieldname in JsCalendar

Benoit Grégoire (@benoitg) via TikiWiki-cvs <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <69668d9b16d70_2c1813485462a@gitlab-sidekiq-low-urgency-cpu-bound-v2-78c7665866-bpzvs.mail>

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


Commits:
e921b76c by Yves Ngalamulume at 2026-01-13T18:15:09+00:00
[FIX] PHP 8.5 notice: undefined array key fieldname in JsCalendar
---
* [FIX] PHP 8 notice: undefined array key fieldname in JsCalendar

* [FIX] PHP 8 notice: undefined array key fieldname in JsCalendar

See merge request tikiwiki/tiki!9356

- - - - -


1 changed file:

- lib/smarty_tiki/FunctionHandler/JsCalendar.php


Changes:

=====================================
lib/smarty_tiki/FunctionHandler/JsCalendar.php
=====================================
@@ -42,7 +42,7 @@ class JsCalendar extends Base
             $params['showtime'] = 'y';
         }
 
-        $fieldName = $params['fieldname'];
+        $fieldName = $params['fieldname'] ?? '';
         $enableTimezonePicker = ($params['showtimezone'] ?? '') === 'y' ? "true" : "false";
         $enableTimePicker = $params['showtime'] === 'y' ? 1 : 0;
         $goto = $params['goto'] ?? '';



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

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/e921b76c9cde82414c11ee677b135316035eb31c
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.