summaryrefslogtreecommitdiffstats
path: root/application/views
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-04-09 00:05:06 +0200
committerFlorian Pritz <bluewind@xinu.at>2012-04-09 20:48:02 +0200
commit58bb9bb7cbee7d9d01f35aaca88d14fce8e39270 (patch)
tree931bbfcbcdcd41fa9f479847c5c8c40f1fdc9b77 /application/views
parent383b8ebad2792297600a5b34c5c7a8b2b44d2265 (diff)
fix missing $username when including header from file_mod
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/views')
-rw-r--r--application/views/file/header.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/views/file/header.php b/application/views/file/header.php
index 176dd5a25..526a9bca4 100644
--- a/application/views/file/header.php
+++ b/application/views/file/header.php
@@ -13,7 +13,7 @@
<?php echo anchor('file/index', 'New'); ?>
<div class="right">
- <?php if($username) { ?>
+ <?php if(isset($username) && $username) { ?>
<?=anchor("user/logout", "Logout"); ?>
<?php } else { ?>
<?=form_open("user/login"); ?>