Random fixes

This commit is contained in:
Michał Gdula 2022-09-22 19:39:15 +00:00
parent 0aed7f1cb9
commit bc7dfb481a
7 changed files with 91 additions and 60 deletions

View file

@ -184,8 +184,8 @@
<div>
<?php
// User
if ($user_info->is_admin($conn, $image['author'])) {
echo "<p>Author: <a href='profile.php?user=".$image['author']."' class='link'>".$image_author."</a><img class='svg' style='margin: 0 0 0.1rem 0.2rem;' src='assets/icons/crown-simple.svg'></p>";
if (empty($image['author'])) {
echo "<p>Author: ".$image_author."</p>";
} else {
echo "<p>Author: <a href='profile.php?user=".$image['author']."' class='link'>".$image_author."</a></p>";
}