No Code Attached Yet
avatar korenevskiy
korenevskiy
14 May 2024

/components/com_ajax/ajax.php line 230

$out = implode((array) $results);

As we know, the first attribute of the "implode" function is a separator for combining. But here the "implode" function is written without a separator.
true format:

implode(string $separator, array $array) : string
avatar korenevskiy korenevskiy - open - 14 May 2024
avatar joomla-cms-bot joomla-cms-bot - change - 14 May 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 14 May 2024
avatar korenevskiy korenevskiy - change - 14 May 2024
Title
[5.1] A big syntax error.
[5.1] A big syntax error: Explode in com_ajax
avatar korenevskiy korenevskiy - edited - 14 May 2024
avatar korenevskiy korenevskiy - change - 14 May 2024
Title
[5.1] A big syntax error: Explode in com_ajax
[5.1] A big syntax error: Explode() in com_ajax
avatar korenevskiy korenevskiy - edited - 14 May 2024
avatar korenevskiy
korenevskiy - comment - 14 May 2024

Error due to PHP syntax confusion. Where there is no system for the order of function parameters.

avatar korenevskiy korenevskiy - change - 14 May 2024
The description was changed
avatar korenevskiy korenevskiy - edited - 14 May 2024
avatar korenevskiy korenevskiy - change - 14 May 2024
Title
[5.1] A big syntax error: Explode() in com_ajax
[5.1] A big syntax error: implode() in com_ajax
avatar korenevskiy korenevskiy - edited - 14 May 2024
avatar korenevskiy korenevskiy - change - 14 May 2024
The description was changed
avatar korenevskiy korenevskiy - edited - 14 May 2024
avatar Fedik
Fedik - comment - 14 May 2024

It is valid use of implode(), check the description https://www.php.net/manual/en/function.implode

Alternative signature (not supported with named arguments):
implode(array $array): string

You can close the issue. Thanks.

avatar korenevskiy korenevskiy - change - 14 May 2024
The description was changed
avatar korenevskiy korenevskiy - edited - 14 May 2024
avatar korenevskiy
korenevskiy - comment - 14 May 2024

You can close the issue. Thanks.

You're right, I had a mistake in another one.

avatar korenevskiy korenevskiy - change - 14 May 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-05-14 08:48:47
Closed_By korenevskiy
avatar korenevskiy korenevskiy - close - 14 May 2024

Add a Comment

Login with GitHub to post a comment