From d0f4dca65f26c779cc81628164d07a35cad82f46 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Sat, 11 May 2019 15:24:56 +0900 Subject: [PATCH] Update security.php --- system/security.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/system/security.php b/system/security.php index 0157124..2d1e08b 100644 --- a/system/security.php +++ b/system/security.php @@ -253,13 +253,11 @@ if(!check_function_exists("get_hashed_text")) { if(!check_function_exists("get_salt")) { function get_salt() { - $config = get_config(); - $salt = ""; - if(!array_key_empty("salt", $config)) { - $salt = $config['salt']; - } else { - $salt = make_random_id(16); + + $config = get_config(); + if(!array_key_equals("saltenable", $config, 1)) { + $salt = get_value_in_array("salt", $config, make_random_id(16)); } return $salt;