From 921226777724a3b96b92f2f77b1a7a7f5b83d2f9 Mon Sep 17 00:00:00 2001 From: Fluffy-Bean Date: Thu, 29 Sep 2022 15:19:07 +0000 Subject: [PATCH] Every time I find bugs only after I push to the main branch --- group.php | 2 +- index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"]) { ?>