Skip to content

Commit

Permalink
Fix pass-by-reference errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendan Abbott committed Jun 15, 2011
1 parent e63b479 commit 9903bea
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion events/event.members_reset_password.php
Expand Up @@ -210,7 +210,7 @@ protected function __trigger(){
// Create new password using the auth field so simulate the checkPostFieldData
// and processRawFieldData functions.
$message = '';
$status = $auth->checkPostFieldData($fields[$auth->get('element_name')], &$message, $member_id);
$status = $auth->checkPostFieldData($fields[$auth->get('element_name')], $message, $member_id);
if(Field::__OK__ != $status) {
$result->setAttribute('result', 'error');
$result->appendChild(
Expand Down
6 changes: 3 additions & 3 deletions extension.driver.php
Expand Up @@ -1054,17 +1054,17 @@ public function checkEventPermissions(array &$context){
private function __processEventFilters(array &$context) {
// Process the Member Lock Role
if (in_array('member-lock-role', $context['event']->eParamFILTERS)) {
$this->getMemberDriver()->filter_LockRole(&$context);
$this->getMemberDriver()->filter_LockRole($context);
}

// Process the Member Lock Activation
if (in_array('member-lock-activation', $context['event']->eParamFILTERS)) {
$this->getMemberDriver()->filter_LockActivation(&$context);
$this->getMemberDriver()->filter_LockActivation($context);
}

// Process updating a Member's Password
if (in_array('member-update-password', $context['event']->eParamFILTERS)) {
$this->getMemberDriver()->filter_UpdatePassword(&$context);
$this->getMemberDriver()->filter_UpdatePassword($context);
}
}

Expand Down
2 changes: 1 addition & 1 deletion fields/field.memberactivation.php
Expand Up @@ -262,7 +262,7 @@ public function displaySettingsPanel(&$wrapper, $errors=NULL){
}

public function checkFields(&$errors, $checkForDuplicates=true) {
Field::checkFields(&$errors, $checkForDuplicates);
Field::checkFields($errors, $checkForDuplicates);

if (trim($this->get('code_expiry')) == '') {
$errors['code_expiry'] = __('This is a required field.');
Expand Down
2 changes: 1 addition & 1 deletion fields/field.memberrole.php
Expand Up @@ -118,7 +118,7 @@ public function displaySettingsPanel(&$wrapper, $errors=NULL){
}

public function checkFields(&$errors, $checkForDuplicates=true) {
Field::checkFields(&$errors, $checkForDuplicates);
Field::checkFields($errors, $checkForDuplicates);
}

public function commit(){
Expand Down
2 changes: 1 addition & 1 deletion fields/field.membertimezone.php
Expand Up @@ -219,7 +219,7 @@ public function displaySettingsPanel(&$wrapper, $errors=NULL){
}

public function checkFields(&$errors, $checkForDuplicates=true) {
Field::checkFields(&$errors, $checkForDuplicates);
Field::checkFields($errors, $checkForDuplicates);
}

public function commit(){
Expand Down

0 comments on commit 9903bea

Please sign in to comment.