From 5eb8df7432a708284862e4b126e418265d36b4ab Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 2 May 2022 18:49:09 +0200 Subject: [inc/Util] Add types, move error printing functions to their own class --- inc/crypto.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/crypto.inc.php') diff --git a/inc/crypto.inc.php b/inc/crypto.inc.php index d3dd60dc..eb0d344f 100644 --- a/inc/crypto.inc.php +++ b/inc/crypto.inc.php @@ -13,7 +13,7 @@ class Crypto $salt = substr(str_replace('+', '.', base64_encode(pack('N4', mt_rand(), mt_rand(), mt_rand(), mt_rand()))), 0, 16); $hash = crypt($password, '$6$' . $salt); - if (strlen($hash) < 60) Util::traceError('Error hashing password using SHA-512'); + if (strlen($hash) < 60) ErrorHandler::traceError('Error hashing password using SHA-512'); return $hash; } -- cgit v1.2.3-55-g7522