diff options
-rw-r--r-- | views/layout.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/views/layout.php b/views/layout.php index e1a2281..dea1a36 100644 --- a/views/layout.php +++ b/views/layout.php @@ -71,7 +71,7 @@ <div class="nav"> <ul class="nav navbar-nav"> - <?php if(session('me')) { ?> + <?php if(session('me') && isset($this->user)) { ?> <?php if(supports_post_type($this->user, 'article')): ?> <li><a href="/editor">📄 Editor</a></li> <?php endif; ?> |