Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Предупреждения #309

Open
A1mDev opened this issue Nov 8, 2020 · 2 comments
Open

Предупреждения #309

A1mDev opened this issue Nov 8, 2020 · 2 comments

Comments

@A1mDev
Copy link
Contributor

A1mDev commented Nov 8, 2020

Notice: Undefined offset: 1 in /var/www/html/newsb/pages/page.banlist.php on line 427

Notice: Undefined offset: 2 in /var/www/html/newsb/pages/page.banlist.php on line 427

Notice: Undefined offset: 1 in /var/www/html/newsb/pages/page.banlist.php on line 427

Notice: Undefined offset: 2 in /var/www/html/newsb/pages/page.banlist.php on line 427

Notice: Undefined offset: 1 in /var/www/html/newsb/pages/page.banlist.php on line 427

Notice: Undefined offset: 2 in /var/www/html/newsb/pages/page.banlist.php on line 427

Проблема возникает когда в аргументы функции CommunityID() приходит STEAM_ID_SERVER, так же проблема возникает когда администратор был удален и в аргументах функции пустая строка!

@A1mDev
Copy link
Contributor Author

A1mDev commented Nov 8, 2020

Тоже самое на странице page.commslist.php (Список мутов и гагов)

@A1mDev
Copy link
Contributor Author

A1mDev commented Nov 8, 2020

А исправить можно так function CommunityID($steamid_id){ if ($steamid_id == '' || $steamid_id == 'STEAM_ID_SERVER') { return " "; } $parts = explode(':', str_replace('STEAM_', '' ,$steamid_id)); return bcadd(bcadd('76561197960265728', $parts['1']), bcmul($parts['2'], '2')); } в файлах page.banlist.php, page.commslist.php нужно исправить эту функцию.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant