diff --git a/core/lib/Core/Helpers/SystemFunctions.class.php b/core/lib/Core/Helpers/SystemFunctions.class.php index 59c5556..afd1529 100644 --- a/core/lib/Core/Helpers/SystemFunctions.class.php +++ b/core/lib/Core/Helpers/SystemFunctions.class.php @@ -376,7 +376,7 @@ { $num = $value % 100; if ($num > 19) { - $num = $num % 10; + $num %= 10; } switch ($num) { @@ -409,19 +409,19 @@ $res = ''; $days = floor($secs / 86400); - $secs = $secs % 86400; + $secs %= 86400; if ($days > 0) { $res .= $days . ' ' . self::numWord($days, ['день', 'дня', 'дней']) . ', '; } $hours = floor($secs / 3600); - $secs = $secs % 3600; + $secs %= 3600; if ($hours > 0) { $res .= $hours . ' ' . self::numWord($hours, ['час', 'часа', 'часов']) . ', '; } $minutes = floor($secs / 60); - $secs = $secs % 60; + $secs %= 60; if ($minutes > 0) { $res .= $minutes . ' ' . self::numWord($minutes, ['минута', 'минуты', 'минут']) . ', '; } @@ -491,7 +491,6 @@ 'э' => 'e', 'ю' => 'yu', 'я' => 'ya', - 'А' => 'A', 'Б' => 'B', 'В' => 'V', diff --git a/core/lib/Core/Models/User.class.php b/core/lib/Core/Models/User.class.php index 74bdc2e..6288749 100644 --- a/core/lib/Core/Models/User.class.php +++ b/core/lib/Core/Models/User.class.php @@ -181,7 +181,7 @@ /** * Получение времени последней активности * - * @return string|null + * @return int|null * @throws CoreException */ public function getLastActive(): ?int diff --git a/telegramHandler.php b/telegramHandler.php index 3c4c8b4..6b90d5d 100644 --- a/telegramHandler.php +++ b/telegramHandler.php @@ -15,7 +15,7 @@ $tg = new Telegram2(TELEGRAM_BOT_TOKEN); $tg->setRemoteRequest($data); - $res = $tg->setChat(TELEGRAM_ADMIN_CHAT_ID)->updateMessage(121, ''); + //$res = $tg->setChat(TELEGRAM_ADMIN_CHAT_ID)->updateMessage(121, ''); - sendTelegram(print_r($res, true)); \ No newline at end of file + sendTelegram(print_r($data, true)); \ No newline at end of file