diff --git a/group.php b/group.php index 5fc6c2e..7cd1aea 100644 --- a/group.php +++ b/group.php @@ -312,7 +312,7 @@ $group_list = mysqli_query($conn, "SELECT * FROM groups ORDER BY id DESC"); - if (empty($group_list) && !$_SESSION["loggedin"]) { + if (mysqli_num_rows($group_list) == 0 && !$_SESSION["loggedin"]) { ?>