ssvfdn 3 mēneši atpakaļ
vecāks
revīzija
ed1cfdb082
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      app/controller/PlayerControl.php

+ 1 - 1
app/controller/PlayerControl.php

@@ -47,7 +47,7 @@ class PlayerControl extends BaseController
         $emptyUnameList = [];
         foreach ($account_ids as $account_id) {
             $account_id = trim($account_id);
-            if(!empty($account_id) && is_int($account_id)) {
+            if(!empty($account_id) && preg_match("/^[1-9]\d*$/", $account_id)) {
                 $unameList[] = $account_id;
             }else {
                 $emptyUnameList[] = $account_id;