Completely hide session timer if there is no session (i.e. no password set)

This commit is contained in:
DL6ER
2016-11-20 21:09:00 +01:00
parent 0cd099f6f1
commit 829c8544db
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -125,7 +125,7 @@
<div class="col-xs-4 text-center">
<a href="https://github.com/pi-hole/pi-hole/releases">Updates</a>
</div>
<div class="col-xs-12 text-center">Session is valid for <span id="sessiontimer"><?php if(strlen($pwhash) > 0){echo $maxlifetime;}else{echo "0";} ?></span></div>
<div class="col-xs-12 text-center" id="sessiontimer">Session is valid for <span id="sessiontimercounter"><?php if(strlen($pwhash) > 0){echo $maxlifetime;}else{echo "0";} ?></span></div>
</li>
<!-- Menu Footer -->
<li class="user-footer">