No Code Attached Yet
avatar brianteeman
brianteeman
24 Sep 2022

This problem arises from #37807 by @chmst

Steps to reproduce the issue

select a user debug permissions
in the filter options select start level 5 and send level 6

Expected result

no idea really as I have no idea what level 4,5,6 are supposed to do but at a minimum there should be no errors

Actual result


Warning
: Undefined array key 0 in
administrator\components\com_users\tmpl\debuguser\default.php
on line
40


Warning
: Attempt to read property "checks" on null in
administrator\components\com_users\tmpl\debuguser\default.php
on line
40


Warning
: Trying to access array offset on value of type null in
administrator\components\com_users\tmpl\debuguser\default.php
on line
40

The error can be solved by changing line 40 to
$check = isset($this->items[0]->checks[$name]);

But I suspect it is more than that else this code will never be reached with that change

else :
$class = '';
$button = '';
$text = '';
endif;

avatar brianteeman brianteeman - open - 24 Sep 2022
avatar joomla-cms-bot joomla-cms-bot - change - 24 Sep 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 24 Sep 2022
avatar chmst
chmst - comment - 14 Oct 2022

please test #38960

avatar chmst chmst - change - 14 Oct 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-10-14 14:34:07
Closed_By chmst
avatar chmst chmst - close - 14 Oct 2022

Add a Comment

Login with GitHub to post a comment