From e6bce73cc56219cdd9126c303ce85c31c39dc874 Mon Sep 17 00:00:00 2001 From: ArkQuark <74979909+ArkQuark@users.noreply.github.com> Date: Sun, 19 Jun 2022 23:54:17 +0300 Subject: [PATCH] Update Utils.php --- src/utils/Utils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/Utils.php b/src/utils/Utils.php index fde308f8..1de9fd35 100644 --- a/src/utils/Utils.php +++ b/src/utils/Utils.php @@ -602,10 +602,10 @@ class Utils{ public static function writeLong($value){ $x = ""; - if(strval($value)[0] === "-"){ + if(strval($value[0]) === "-"){ $negative = true; $value = bcadd($value, "1"); - if(strval($value)[0] === "-"){ + if(strval($value[0]) === "-"){ $value = substr($value, 1); } }else{