Skip to content

Commit

Permalink
Update layout.html.php
Browse files Browse the repository at this point in the history
  • Loading branch information
danpros committed Apr 29, 2024
1 parent 1e96786 commit 295ea2d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion system/admin/views/layout.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
$user = $_SESSION[site_url()]['user'];
$role = user('role', $user);
$author = get_author($user);
if (isset($author[0])) {
$author = $author[0];
} else {
$author = default_profile($user);
}
if (isset($_GET['search'])) {
$search = _h($_GET['search']);
$url = site_url() . 'search/' . remove_accent($search);
Expand Down Expand Up @@ -55,7 +60,7 @@
<!-- Sidebar user panel (optional) -->
<div class="user-panel mt-3 pb-3 mb-3 d-flex">
<div class="image">
<img src="<?php echo $author[0]->avatar; ?>" class="img-circle elevation-2" alt="HTMLy logo">
<img src="<?php echo $author->avatar; ?>" class="img-circle elevation-2" alt="HTMLy logo">
</div>
<div class="info">
<a href="<?php echo site_url();?>admin" class="d-block"><?php echo i18n('Dashboard')?></a>
Expand Down

0 comments on commit 295ea2d

Please sign in to comment.