Skip to content

Commit

Permalink
Removes unnecessary conditional check
Browse files Browse the repository at this point in the history
  • Loading branch information
VangelisP committed May 16, 2021
1 parent 838c30f commit 5febcce
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions CRM/Contact/Form/Edit/CommunicationPreferences.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,6 @@ public static function setDefaultValues(&$form, &$defaults) {
if (($defContactLanguage = CRM_Core_I18n::getContactDefaultLanguage()) != FALSE) {
$defaults['preferred_language'] = $defContactLanguage;
}
else {
$config = CRM_Core_Config::singleton();
$defaults['preferred_language'] = $config->lcMessages;
}
}
}

Expand Down
4 changes: 0 additions & 4 deletions CRM/Contact/Form/Inline/CommunicationPreferences.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ public function setDefaultValues() {
if (($defContactLanguage = CRM_Core_I18n::getContactDefaultLanguage()) != FALSE) {
$defaults['preferred_language'] = $defContactLanguage;
}
else {
$config = CRM_Core_Config::singleton();
$defaults['preferred_language'] = $config->lcMessages;
}
}
}

Expand Down

0 comments on commit 5febcce

Please sign in to comment.