Skip to content

Commit

Permalink
Merge pull request #59 from acquia/ACMS-3759
Browse files Browse the repository at this point in the history
ACMS-3759: Adding conditional operator to handle the hash_salt.
  • Loading branch information
vishalkhode1 authored May 9, 2024
2 parents ffa0f76 + 84b8cd9 commit 2877658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion settings/misc.settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* $settings['hash_salt'] = file_get_contents('/home/example/salt.txt');
* @endcode
*/
$settings['hash_salt'] = $settings['hash_salt'] ?? file_get_contents(DRUPAL_ROOT . '/../salt.txt');
$settings['hash_salt'] = !empty($settings['hash_salt']) ? $settings['hash_salt'] : file_get_contents(DRUPAL_ROOT . '/../salt.txt');
/**
* Deployment identifier.
*
Expand Down

0 comments on commit 2877658

Please sign in to comment.