aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2015-12-03 20:30:46 +0100
committerVirtualTam <virtualtam@flibidi.net>2015-12-03 20:30:46 +0100
commit4a7af9759a1874bdf6ec00a286040a3c64b9870e (patch)
tree4201598fb5b722e45a573a30452fe430145338f7 /index.php
parentb6a54537b8823d2b96e9bdb64e280959d6681c36 (diff)
downloadShaarli-4a7af9759a1874bdf6ec00a286040a3c64b9870e.tar.gz
Shaarli-4a7af9759a1874bdf6ec00a286040a3c64b9870e.tar.zst
Shaarli-4a7af9759a1874bdf6ec00a286040a3c64b9870e.zip
fix: assign template variables to empty values so they can be evaluated
Regression introduced in #394 Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/index.php b/index.php
index d26c0c1e..e2592045 100644
--- a/index.php
+++ b/index.php
@@ -643,9 +643,11 @@ class pageBuilder
643 $GLOBALS['config']['UPDATECHECK_BRANCH'] 643 $GLOBALS['config']['UPDATECHECK_BRANCH']
644 ); 644 );
645 $this->tpl->assign('newVersion', escape($version)); 645 $this->tpl->assign('newVersion', escape($version));
646 $this->tpl->assign('versionError', '');
646 647
647 } catch (Exception $exc) { 648 } catch (Exception $exc) {
648 logm($exc->getMessage()); 649 logm($exc->getMessage());
650 $this->tpl->assign('newVersion', '');
649 $this->tpl->assign('versionError', escape($exc->getMessage())); 651 $this->tpl->assign('versionError', escape($exc->getMessage()));
650 } 652 }
651 653