[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] PluginConvene: Trying to access array offset on null

"ushindi bienvenu \(@usbbush\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <68f0a808f2eec_2c92e70857279@gitlab-sidekiq-low-urgency-cpu-bound-v2-56f86b7d78-ztfzp.mail>

ushindi bienvenu pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
42cfffab by ushindi bienvenu at 2025-10-16T08:00:38+00:00
[FIX] PluginConvene: Trying to access array offset on null
---
* [FIX] PluginConvene: Trying to access array offset on null

See merge request tikiwiki/tiki!8790

- - - - -


1 changed file:

- templates/wiki-plugins/wikiplugin_convene.tpl


Changes:

=====================================
templates/wiki-plugins/wikiplugin_convene.tpl
=====================================
@@ -83,14 +83,14 @@
                                     {$icon = 'help'}
                                 {/if}
 
-                                {if $comments[$stamp][$voter] eq ""}
+                                {if empty($comments[$stamp][$voter])}
                                     {$voteComment = "{tr}No Comment{/tr}"}
                                 {else}
                                     {$voteComment = $comments[$stamp][$voter]}
                                 {/if}
                                 <td class='align-middle flex-align-center {$class}'>
                                     {icon name=$icon size=2 iclass="tips $iconClass" ititle="{tr}Vote value{/tr} $vote:$voteComment "  }
-                                    <input type='hidden' name='dates_{$stamp}_{$voter}' value='{$vote}' class='conveneUserVote' data-voter="{$voter}" data-date="{$stamp}" data-comment="{$comments[$stamp][$voter]}">
+                                    <input type='hidden' name='dates_{$stamp}_{$voter}' value='{$vote}' class='conveneUserVote' data-voter="{$voter}" data-date="{$stamp}" data-comment="{$voteComment}">
                                 </td>
                             {/foreach}
                         </tr>



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

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