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

"Camile \(@camilevahviraki\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <68e5253cb65ec_2cdf46c930ac@gitlab-sidekiq-low-urgency-cpu-bound-v2-d955ff655-jmlx8.mail>

Camile pushed to branch 29.x at Tiki Wiki CMS Groupware / Tiki


Commits:
03b4a129 by Camile at 2025-10-07T14:27:40+00:00
[FIX] empty feddback message after creating a wiki page
---
* [FIX] empty feddback message after creating a wiki page
---
* [FIX] empty feddback message after creating a wiki page

See merge request tikiwiki/tiki!8705

See merge request tikiwiki/tiki!8719

- - - - -


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/03b4a1295fc9908362a22549cdb2ee615638f903

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