Skip to content

Commit

Permalink
Refs #40947, Modify function comments of validateSortParameter in RES…
Browse files Browse the repository at this point in the history
…T.php.
  • Loading branch information
Chang Shu-Huai committed Sep 12, 2024
1 parent f2a73ae commit 3433c70
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CRM/Utils/REST.php
Original file line number Diff line number Diff line change
Expand Up @@ -634,8 +634,10 @@ static function ajax() {
/**
* validate sort parameter
*
* @param $sort
* @return void
* @param string $sort The sort parameter to validate. Can be a single field
* or multiple fields separated by commas (`,`), optionally
* followed by ASC or DESC.
* @return boolean true if valid, else false
*/
public static function validateSortParameter($sort) {
if (empty($sort) || !is_string($sort)) {
Expand Down

0 comments on commit 3433c70

Please sign in to comment.