Skip to content

Commit 2701b32

Browse files
committed
refactor: move to Kbcore_auth::$previous_id
1 parent e328a3b commit 2701b32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/partials/navbar.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
}
2020
?>
2121
<ul class="navbar-nav ms-auto">
22-
<?php if ( ! empty($this->prev_user_id)): ?>
22+
<?php if ($this->auth->previous_id > 0): ?>
2323
<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">
24+
<input type="hidden" name="id" value="<?php echo $this->auth->previous_id ?>" hidden="hidden" style="display:none">
2525
<button type="submit" class="btn btn-link"><span class="fa fa-sign-in"></span></button>
2626
</form>
2727
<?php endif; ?>

0 commit comments

Comments
 (0)