User tests: Successful: Unsuccessful:
Pull Request for Issue # .
This PR adds a check to make sure Itemid from request points to a valid menu item before merging it's query data with the query from previous process to prevent fatal error.
You get fatal error:
0 array_merge(): Argument #1 must be of type array, null given
No fatal error, page displayed OK
Please select:
@Hackwar Is it OK to add this check ? In theory, getItem
method from calling code could return null, so I think it makes sense to add the check (we have other similar check in the same class)
Category | ⇒ | Libraries |
Status | New | ⇒ | Pending |
but strange page rendered
The same thing happens if $query['option']
is not set. See line 395
if (!isset($query['option'])) {
return;
}
ah yes @joomdonation it's correct
I have tested this item
it is not related to the change in this PR
Indeed.
Also sorry, that I wasn't completely clear @joomdonation
I have tested this item
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-02-16 12:34:48 |
Closed_By | ⇒ | wilsonge | |
Labels |
Added:
?
|
Thanks!
ok no more fatal error with pr applyed
but strange page rendered