[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] empty feddback message after creating a wiki page

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

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


Commits:
9c846af1 by Camile at 2025-10-03T03:48:12+00:00
[FIX] empty feddback message after creating a wiki page
---
* [FIX] empty feddback message after creating a wiki page

See merge request tikiwiki/tiki!8705

- - - - -


1 changed file:

- lib/core/Feedback.php


Changes:

=====================================
lib/core/Feedback.php
=====================================
@@ -444,12 +444,15 @@ class Feedback
                 foreach ($watches as $watch) {
                     $usersList[] = "<a href='tiki-user_information.php?user=" . $watch['user'] . "' class='fw-bold'>" . $watch['user'] . "</a>";
                 }
-                $message = implode(", ", $usersList);
-                self::note([
-                    'title' => tr('Notification sent to:'),
-                    'mes' => $message,
-                    'icon' => 'bell'
-                ]);
+
+                if (! empty($usersList)) {
+                    $message = implode(", ", $usersList);
+                    self::note([
+                        'title' => tr('Notification sent to:'),
+                        'mes' => $message,
+                        'icon' => 'bell'
+                    ]);
+                }
             }
         }
     }



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

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