diff options
author | Andrew Dolgov <[email protected]> | 2021-02-22 14:41:09 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-22 14:41:09 +0300 |
commit | be4e7b13403666fc477d4b563ea8c075d0fd2022 (patch) | |
tree | 38eee4a6d7a5f0c4ecc3b37f997c385559c1d2a8 /include/functions.php | |
parent | 043ef3dad68f774598e1b172ecb0f5ea75f112af (diff) |
fix several issues reported by phpstan
Diffstat (limited to 'include/functions.php')
-rw-r--r-- | include/functions.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/functions.php b/include/functions.php index 174ef39f0..bf9b374a2 100644 --- a/include/functions.php +++ b/include/functions.php @@ -34,8 +34,8 @@ error_reporting(E_ALL & ~E_NOTICE); } - ini_set('display_errors', 0); - ini_set('display_startup_errors', 0); + ini_set('display_errors', "false"); + ini_set('display_startup_errors', "false"); require_once 'config.php'; @@ -281,7 +281,7 @@ } else if (is_string($param)) { return trim(strip_tags($param)); } else { - return trim($param); + return $param; } } @@ -430,7 +430,7 @@ } function uniqid_short() { - return uniqid(base_convert(rand(), 10, 36)); + return uniqid(base_convert((string)rand(), 10, 36)); } function T_sprintf() { |