Every time I find bugs only after I push to the main branch

This commit is contained in:
Michał 2022-09-29 15:19:07 +00:00
parent 7b76201f88
commit 9212267777
2 changed files with 2 additions and 2 deletions

View file

@ -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"]) {
?>
<style>
.gallery-root {

View file

@ -50,7 +50,7 @@
// Reading images from table
$image_request = mysqli_query($conn, "SELECT * FROM images ORDER BY id DESC");
if (!empty($image_request)) {
if (mysqli_num_rows($image_request) != 0) {
?>
<div class="info-text defaultFonts">
<?php