We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Kbcore_auth::$previous_id
1 parent e328a3b commit 2701b32Copy full SHA for 2701b32
templates/partials/navbar.php
@@ -19,9 +19,9 @@
19
}
20
?>
21
<ul class="navbar-nav ms-auto">
22
- <?php if ( ! empty($this->prev_user_id)): ?>
+ <?php if ($this->auth->previous_id > 0): ?>
23
<form class="navbar-form navbar-start pl-0 pr-0" action="<?php echo site_url('switch') ?>" method="POST">
24
- <input type="hidden" name="id" value="<?php echo $this->prev_user_id ?>" hidden="hidden" style="display:none">
+ <input type="hidden" name="id" value="<?php echo $this->auth->previous_id ?>" hidden="hidden" style="display:none">
25
<button type="submit" class="btn btn-link"><span class="fa fa-sign-in"></span></button>
26
</form>
27
<?php endif; ?>
0 commit comments