Issue #3315720 by gauravjeet: TypeError: krsort(): Argument #1 ($array) must be of type array, null given in krsort()