Skip to content
Snippets Groups Projects
Commit c5dfada6 authored by Tim Steiner's avatar Tim Steiner
Browse files

Fix a stupid pass-by-reference bug causing trouble on the My Requests pages...

parent fa83d703
No related branches found
No related tags found
No related merge requests found
......@@ -106,6 +106,7 @@ class Requests_IndexController extends App_Controller_Action
foreach ($userRequestsData as $requestType => &$requestList) {
$sortKeys[$requestType][] =& $requestList;
call_user_func_array('array_multisort', &$sortKeys[$requestType]);
unset($requestList);
}
$roleData = array();
......@@ -159,6 +160,7 @@ class Requests_IndexController extends App_Controller_Action
foreach ($role['requests'] as $requestType => &$requestList) {
$sortKeys[$requestType][] =& $requestList;
call_user_func_array('array_multisort', &$sortKeys[$requestType]);
unset($requestList);
}
}
......@@ -197,6 +199,7 @@ class Requests_IndexController extends App_Controller_Action
foreach ($role['watchingRequests'] as $requestType => &$requestList) {
$sortKeys[$requestType][] =& $requestList;
call_user_func_array('array_multisort', &$sortKeys[$requestType]);
unset($requestList);
}
}
$roleData[] = $role;
......
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