File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 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 ();
You can’t perform that action at this time.
0 commit comments