From 403dca154c6b539de221f9e16174a0fdd0a1e896 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 5 Feb 2021 23:41:32 +0300 Subject: initial WIP for php8; bump php version requirement to 7.0 --- plugins/af_proxy_http/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/af_proxy_http/init.php') diff --git a/plugins/af_proxy_http/init.php b/plugins/af_proxy_http/init.php index 86f5fc8ce..c7cded4c9 100644 --- a/plugins/af_proxy_http/init.php +++ b/plugins/af_proxy_http/init.php @@ -29,7 +29,7 @@ class Af_Proxy_Http extends Plugin { $host->add_hook($host::HOOK_PREFS_TAB, $this); - if (!$_SESSION['af_proxy_http_token']) + if (empty($_SESSION['af_proxy_http_token'])) $_SESSION['af_proxy_http_token'] = bin2hex(get_random_bytes(16)); } -- cgit v1.2.3