Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
drbyte committed Jul 1, 2020
1 parent daafe01 commit 4947a0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/includes/init_includes/init_db_config_read.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

$config = new Configuration;
$authkey = $config->where('configuration_key', 'GLOBAL_AUTH_KEY')->value('configuration_value');
if (!isset($authkey) || $authkey == '') {
if (empty($authkey)) {
$hashable = hash('sha256', openssl_random_pseudo_bytes(64));
$config->update(['comnfiguration_value' => $hashable])->where('configuration_key', 'GLOBAL_AUTH_KEY');
}
Expand Down

0 comments on commit 4947a0e

Please sign in to comment.