From 50f93e0c60fc66e76356efc19a759344dd88a460 Mon Sep 17 00:00:00 2001 From: cryptoapi Date: Fri, 13 Oct 2017 00:02:24 +0300 Subject: [PATCH] update --- gourl.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gourl.php b/gourl.php index b3898f8..93886cb 100644 --- a/gourl.php +++ b/gourl.php @@ -889,7 +889,8 @@ private function save_settings() $boxkey = (strpos($key, "public_key") || strpos($key, "private_key")) ? true : false; if (!(file_exists($this->hash_url) && !is_writable($this->hash_url) && $boxkey)) { - if ($boxkey && get_option(GOURL.$key) != $value) $arr[$key] = array("old_key" => get_option(GOURL.$key), "new_key" => $value); + $oldval = get_option(GOURL.$key); + if ($boxkey && $oldval != $value) $arr[$key] = array("old_key" => ($oldval ? substr($oldval, 0, -20)."....." : "-empty-"), "new_key" => ($value ? substr($value, 0, -20)."....." : "-empty-")); update_option(GOURL.$key, $value); } } @@ -7752,5 +7753,5 @@ function gourl_altcoin_btc_price ($altcoin, $interval = 1) } - return 0; + return 0; }