Skip to content

Commit

Permalink
Merge pull request #447 from totten/7.x-master-20541
Browse files Browse the repository at this point in the history
CRM-20541 - Use drupal_static() instead of static
  • Loading branch information
eileenmcnaughton authored Jul 10, 2017
2 parents bba4daa + 9a6cd1b commit f7ed137
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions civicrm.module
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ function civicrm_initialize() {
}
_civicrm_registerClassLoader();

static $initialized = FALSE;
static $failure = FALSE;
$initialized = &drupal_static('civicrm_initialize', FALSE);
$failure = &drupal_static('civicrm_initialize_failure', FALSE);

if ($failure) {
return FALSE;
Expand Down Expand Up @@ -687,7 +687,7 @@ function civicrm_user_form_validate($form, &$form_state) {
// lets suppress key generation for all validation also
civicrm_key_disable();

static $validated = FALSE;
$validated = &drupal_static(__FUNCTION__, FALSE);

if ($validated) {
return;
Expand Down

0 comments on commit f7ed137

Please sign in to comment.