diff options
author | Aaron Parecki <aaron@parecki.com> | 2018-07-20 18:04:32 -0500 |
---|---|---|
committer | Aaron Parecki <aaron@parecki.com> | 2018-07-20 18:04:32 -0500 |
commit | 926b3f8820148f6f886ae431f0637b3e790718e7 (patch) | |
tree | 8187b4fbc46b92518c09bfc449a011571af007af | |
parent | 58a8a3a881fd33cb900e2721757db7e4513ce7df (diff) |
add check for user variable
-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; ?> |