Skip to content
Snippets Groups Projects
Commit 26ca6381 authored by lobo's avatar lobo
Browse files

Merge pull request #935 from colemanw/CRM-12743

One last eval CRM-12743
parents 9f092434 0e2079a1
No related branches found
No related tags found
No related merge requests found
......@@ -142,9 +142,8 @@ class CRM_Activity_Page_AJAX {
foreach ($clientRelationships as $key => $row) {
$sortArray[$key] = $row[$sort];
}
$sort_type = "SORT_".strtoupper($sortOrder);
$sort_function = "array_multisort(\$sortArray, ".$sort_type.", \$clientRelationships);";
eval($sort_function);
$sort_type = "SORT_" . strtoupper($sortOrder);
array_multisort($sortArray, constant($sort_type), $clientRelationships);
//limit the rows
$allClientRelationships = $clientRelationships;
......@@ -239,10 +238,8 @@ class CRM_Activity_Page_AJAX {
$sortArray[$key] = $row[$sort];
}
$sort_type = "SORT_".strtoupper($sortOrder);
$sort_function = "array_multisort(\$sortArray, ".$sort_type.", \$caseRelationships);";
eval($sort_function);
$sort_type = "SORT_" . strtoupper($sortOrder);
array_multisort($sortArray, constant($sort_type), $caseRelationships);
//limit rows display
$allCaseRelationships = $caseRelationships;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment