Skip to content

Commit fe9e85a

Browse files
authored
Update bot.php
1 parent 22e96fa commit fe9e85a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bot.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6413,12 +6413,12 @@
64136413

64146414

64156415
$marzbanList = array_column($info, 0);
6416-
if(count($marzbanList) > 0) $condition = " AND `id` " .($userInfo['step'] == "addNewMarzbanPlan"?"IN":"NOT IN") . " (" . (str_repeat('?,', count($marzbanList) - 1) . '?') . ")";
6416+
if(count($marzbanList) > 0) $condition = " AND `id` " .($userInfo['step'] == "addNewMarzbanPlan"?"IN":"NOT IN") . " (" . implode(", ", $marzbanList) . ")";
64176417
else $condition = "";
64186418

6419+
64196420
$stmt = $connection->prepare("SELECT * FROM `server_info` WHERE `active`=1 $condition");
6420-
if(!empty($condition)) $stmt->execute($marzbanList);
6421-
else $stmt->execute();
6421+
$stmt->execute();
64226422

64236423
$srvs = $stmt->get_result();
64246424
$stmt->close();

0 commit comments

Comments
 (0)