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

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

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


Commits:
68083799 by ushindi bienvenu at 2025-09-24T00:07:51+00:00
[FIX] ActionLog: Trying to access array offset on null
---
* [FIX] Trying to access array offset on null

See merge request tikiwiki/tiki!8635

- - - - -


1 changed file:

- templates/tiki-admin_actionlog.tpl


Changes:

=====================================
templates/tiki-admin_actionlog.tpl
=====================================
@@ -56,8 +56,10 @@
                                     <option value="">{tr}All{/tr}</option>
                                     <option value="Anonymous">{tr}Anonymous{/tr}</option>
                                     {foreach key=ix item=auser from=$users}
-                                        <option value="{$auser|escape}"
-                                                {if $selectedUsers[$ix] eq 'y'}selected="selected"{/if}>{$auser|username}</option>
+                                        <option value="{$auser}"
+                                                {if isset($selectedUsers[$ix]) && $selectedUsers[$ix] eq 'y'}selected="selected"{/if}>
+                                            {$auser|username}
+                                        </option>
                                     {/foreach}
                                 </select>
                             </div>
@@ -76,8 +78,9 @@
                                         name="selectedGroups[]" id="selectedGroups" class="form-control">
                                     <option value="">{tr}All{/tr}</option>
                                     {foreach from=$groups key=ix item=group}
-                                        <option value="{$group|escape}"
-                                                {if $selectedGroups[$group] eq 'y'}selected="selected"{/if}>{$group|escape}</option>
+                                        <option value="{$group|escape}" {if isset($selectedGroups[$ix]) && $selectedGroups[$group] eq 'y'}selected="selected"{/if}>
+                                            {$group|escape}
+                                        </option>
                                     {/foreach}
                                 </select>
                             </div>



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

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