From 677717a082f3b4a550689d0a1b7c3230a7a629f3 Mon Sep 17 00:00:00 2001 From: Sergey <31823239+SeAnSolovev@users.noreply.github.com> Date: Sun, 5 Mar 2023 10:44:50 +0300 Subject: [PATCH] Minor fixes --- system/library/system.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/library/system.php b/system/library/system.php index 3da9eeb..40599ea 100644 --- a/system/library/system.php +++ b/system/library/system.php @@ -1052,7 +1052,7 @@ fclose($stack); - return isset($subnetwork{0}) ? $subnetwork : 'не определена'; + return isset($subnetwork[0]) ? $subnetwork : 'не определена'; } public static function rep_act($name, $time = 20) @@ -1418,7 +1418,7 @@ foreach($aTags as $tag) $text .= ''.trim($tag).', '; - return isset($text{0}) ? substr($text, 0, -2) : 'отсутствуют'; + return isset($text[0]) ? substr($text, 0, -2) : 'отсутствуют'; } public static function benefitblock($id, $nmch = false)