Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Recca Tsai committed Aug 17, 2016
1 parent cbc5f8b commit be96693
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/views/AuthPanel/panel.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="Laravel-AuthPanel">
<h1><?php echo is_null($user) === false ? 'Logged in' : 'Unlogged' ?></h1>
<?php if (is_null($user) === false): ?>
<?php if (is_null($user) === true): ?>
<p>No identity</p>
<?php else: ?>
<table>
Expand Down
2 changes: 1 addition & 1 deletion src/Panels/AuthPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ protected function getAttributes()
{
$logged = false;
$name = 'Guest';
$user = [];
$user = null;
if ($this->isLaravel() === true) {
$userObject = $this->laravel['auth']->user();
if (is_null($userObject) === false) {
Expand Down

0 comments on commit be96693

Please sign in to comment.