Commit 3a3cc75a authored by Nigel McNie's avatar Nigel McNie
Browse files

Fix call time pass by reference on institutional admin/staff search pages.

parent 128796cb
......@@ -35,7 +35,7 @@ define('MENUITEM', 'manageinstitutions/institutionadmins');
$smarty = smarty();
require_once('institution.php');
$institution = add_institution_selector_to_page(&$smarty, param_alphanum('institution', false),
$institution = add_institution_selector_to_page($smarty, param_alphanum('institution', false),
get_config('wwwroot') . 'admin/users/institutionadmins.php');
if ($institution === false) {
......
......@@ -35,7 +35,7 @@ define('MENUITEM', 'manageinstitutions/institutionstaff');
$smarty = smarty();
require_once('institution.php');
$institution = add_institution_selector_to_page(&$smarty, param_alphanum('institution', false),
$institution = add_institution_selector_to_page($smarty, param_alphanum('institution', false),
get_config('wwwroot') . 'admin/users/institutionstaff.php');
if ($institution === false) {
......
......@@ -469,7 +469,7 @@ function get_institution_selector($includedefault = true) {
institutionadmins.php and institutionstaff.php (in /admin/users/).
This function creates the form for the page, setting
$institutionselector and $INLINEJAVASCRIPT in the smarty object. */
function add_institution_selector_to_page($smarty, $institution, $page) {
function add_institution_selector_to_page(&$smarty, $institution, $page) {
require_once('pieforms/pieform.php');
$institutionelement = get_institution_selector(false);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment