diff --git a/system/admin/views/layout.html.php b/system/admin/views/layout.html.php index 738f36d..155aadc 100644 --- a/system/admin/views/layout.html.php +++ b/system/admin/views/layout.html.php @@ -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); @@ -55,7 +60,7 @@ if (isset($_GET['search'])) {