From dd51a7f932069c33394e750b5651a825e942f75d Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Mon, 25 Oct 2010 11:43:59 +0000 Subject: [PATCH] templates/status.php: Make session validity optional. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2594 44740490-163a-0410-bde0-09ae8108e29a --- templates/status.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/status.php b/templates/status.php index 6656e3b8e..3ecc00862 100644 --- a/templates/status.php +++ b/templates/status.php @@ -12,9 +12,11 @@ $this->includeAtTemplateBase('includes/header.php'); <p><?php echo($this->t('{status:intro}')); ?></p> -<p><?php echo($this->t('{status:validfor}', array('%SECONDS%' => $this->data['remaining']))); ?></p> - <?php +if (isset($this->data['remaining'])) { + echo('<p>' . $this->t('{status:validfor}', array('%SECONDS%' => $this->data['remaining'])) . '</p>'); +} + if(isset($this->data['sessionsize'])) { echo('<p>' . $this->t('{status:sessionsize}', array('%SIZE%' => $this->data['sessionsize'])) . '</p>'); } -- GitLab