diff options
Diffstat (limited to 'application/views')
-rw-r--r-- | application/views/file/upload_form.php | 2 | ||||
-rw-r--r-- | application/views/header.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/application/views/file/upload_form.php b/application/views/file/upload_form.php index a977aaa92..b472bcc10 100644 --- a/application/views/file/upload_form.php +++ b/application/views/file/upload_form.php @@ -1,4 +1,4 @@ -<?php if (user_logged_in()) { ?> +<?php if (isset($user_logged_in) && $user_logged_in) { ?> <div class="well"> <div class="row"> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 text-upload-form"> diff --git a/application/views/header.php b/application/views/header.php index 396841a0e..7d4ba1f54 100644 --- a/application/views/header.php +++ b/application/views/header.php @@ -54,7 +54,7 @@ if (is_cli_client() && !isset($force_full_html)) { <div class="collapse navbar-collapse navbar-ex1-collapse"> <?php if(!isset($GLOBALS["is_error_page"])) { ?> <ul class="nav navbar-nav navbar-right"> - <?php if(user_logged_in()) { ?> + <?php if (isset($user_logged_in) && $user_logged_in) { ?> <li><a class="navbar-link" href="<?php echo site_url("/user/logout"); ?>">Logout</a></li> <?php } else { ?> <li class="dropdown"> @@ -74,7 +74,7 @@ if (is_cli_client() && !isset($force_full_html)) { </ul> <?php }; ?> <ul class="nav navbar-nav"> - <?php if(user_logged_in()) { ?> + <?php if (isset($user_logged_in) && $user_logged_in) { ?> <li><a href="<?php echo site_url("file/index") ?>"><span class="glyphicon glyphicon-pencil"></span> New</a></li> <li><a href="<?php echo site_url("file/upload_history") ?>"><span class="glyphicon glyphicon-book"></span> History</a></li> <li class="dropdown"> |