DanWin / le-chat-php

A PHP Chat based on LE CHAT
https://danwin1210.de/chat/
GNU General Public License v3.0
268 stars 98 forks source link

Kick all guests does not work #140

Closed zooool closed 12 months ago

zooool commented 1 year ago

Logged in as (super)admin and clicking Kick all guests does nothing. Also not sure if related but I got this error message: PHP message: PHP Notice: Undefined offset: 0 in /var/www/html/chat.php on line 2207 Which in my file corresponds to:

    if($U['status']>=3){
        echo '<br>'._("Members: You'll have some more options in your profile. You can adjust your font face, change your password anytime and of course you can delete your account.").'<br>';
        **if($U['status']>=5){** <----------- THIS LINE
            echo '<br>'._("Moderators: Notice the Admin-button at the bottom. It'll bring up a page where you can clean the room, kick chatters, view all active sessions and disable guest access completely if needed.").'<br>';
            if($U['status']>=7){
                echo '<br>'._("Admins: You'll be furthermore able to register guests, edit members and register new nicknames.").'<br>';
DanWin commented 12 months ago

Thanks for reporting this @zooool , this is now fixed in 5426a76