? Pending

User tests: Successful: Unsuccessful:

avatar N6REJ
N6REJ
9 Oct 2020

Pull Request for Issue # 30979

Summary of Changes

changed to integer per https://www.w3schools.com/php/func_array_ksort.asp

Testing Instructions

go to global configuration
set debug to yes
set log to development
go to administrator/index.php?option=com_templates&view=template&id=506
observer php warning exists
apply pr
refresh page verify that error is gone.

Actual result BEFORE applying this Pull Request

image

Expected result AFTER applying this Pull Request

image

Documentation Changes Required

none

avatar N6REJ N6REJ - open - 9 Oct 2020
avatar N6REJ N6REJ - change - 9 Oct 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 9 Oct 2020
Category Repository Administration com_templates
avatar SharkyKZ
SharkyKZ - comment - 9 Oct 2020

Unrelated changes aside, this PR is wrong.

avatar N6REJ
N6REJ - comment - 9 Oct 2020

@SharkyKZ the fix is NOT wrong. dunno why you say it is but it's not.

avatar N6REJ
N6REJ - comment - 9 Oct 2020

replaced pr with one thats not corrupted. #31011

avatar N6REJ N6REJ - change - 9 Oct 2020
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2020-10-09 06:01:09
Closed_By N6REJ
Labels Added: ?
avatar N6REJ N6REJ - close - 9 Oct 2020
avatar SharkyKZ
SharkyKZ - comment - 9 Oct 2020

You can't just replace an undefined constant with a random value. Passing an unrecognized flag, my guess, will result in default value being used. ksort() simply doesn't support natural sorting on PHP 5.3, no matter what you pass. Not to mention values of constants can change between PHP versions.

avatar N6REJ
N6REJ - comment - 9 Oct 2020

it's not a random value.. read the docs

Add a Comment

Login with GitHub to post a comment