diff --git a/templates/status.php b/templates/status.php index 6656e3b8e1b675c9e74ef71c935fb4e245a5480d..3ecc008623f1b9f591f01af707c05b4ed62f3033 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>'); }