Skip to content

Commit 74abbf3

Browse files
authored
Fix Bug
1 parent 1c6c86f commit 74abbf3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

index.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,7 @@ function createForumTopicIfMissing($currentId, $reportKey, $topicName, $channelI
12951295
step('home', $from_id);
12961296
return;
12971297
} elseif (preg_match('/subscriptionurl_(\w+)/', $datain, $dataget) || strpos($text, "/sub ") !== false) {
1298-
if ($text[0] == "/") {
1298+
if (!empty($text) && $text[0] == "/") {
12991299
$id_invoice = explode(' ', $text)[1];
13001300
$nameloc = select("invoice", "*", "username", $id_invoice, "select");
13011301
if ($nameloc['id_user'] != $from_id) {
@@ -1369,7 +1369,7 @@ function createForumTopicIfMissing($currentId, $reportKey, $topicName, $channelI
13691369
}
13701370
sendmessage($from_id, "📌 سرویس با موفقیت حذف شد", null, 'html');
13711371
} elseif (preg_match('/config_(\w+)/', $datain, $dataget) || strpos($text, "/link ") !== false) {
1372-
if ($text[0] == "/") {
1372+
if (!empty($text) && $text[0] == "/") {
13731373
$id_invoice = explode(' ', $text)[1];
13741374
$nameloc = select("invoice", "*", "username", $id_invoice, "select");
13751375
if ($nameloc['id_user'] != $from_id) {
@@ -6963,7 +6963,7 @@ function createForumTopicIfMissing($currentId, $reportKey, $topicName, $channelI
69636963
'chat_id' => $from_id,
69646964
'emoji' => "🎲",
69656965
]);
6966-
sleep(4.5);
6966+
sleep((int)4.5);
69676967
} else {
69686968
$diceResponse = telegram('sendDice', [
69696969
'chat_id' => $from_id,

0 commit comments

Comments
 (0)