From 9276e3008a360008e35e66851120d30d5513580e Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 22 Apr 2012 19:32:48 +0000 Subject: [PATCH] allow to dynamically change self service settings --- lam/lib/baseModule.inc | 2 +- lam/lib/selfService.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lam/lib/baseModule.inc b/lam/lib/baseModule.inc index 16d43f1e..82eb6a3f 100644 --- a/lam/lib/baseModule.inc +++ b/lam/lib/baseModule.inc @@ -1298,7 +1298,7 @@ abstract class baseModule { * @param array $options hash array (option name => value) that contains the input. The option values are all arrays containing one or more elements. * @return array error messages */ - public function checkSelfServiceSettings($options) { + public function checkSelfServiceSettings(&$options) { // needs to be implemented by the subclasses, if needed return array(); } diff --git a/lam/lib/selfService.inc b/lam/lib/selfService.inc index 8262fce1..ea0d236f 100644 --- a/lam/lib/selfService.inc +++ b/lam/lib/selfService.inc @@ -257,7 +257,7 @@ function getSelfServiceSettings($scope, $profile) { * @param array $options hash array containing all options (name => array(...)) * @return array list of error messages */ -function checkSelfServiceSettings($scope, $options) { +function checkSelfServiceSettings($scope, &$options) { $return = array(); $modules = getAvailableModules($scope); for ($i = 0; $i < sizeof($modules); $i++) {