diff options
author | VirtualTam <virtualtam@flibidi.net> | 2015-12-03 21:13:51 +0100 |
---|---|---|
committer | VirtualTam <virtualtam@flibidi.net> | 2015-12-03 21:13:51 +0100 |
commit | a6aa37b96fc59d3e6218dbcfd8f6ea8e5ba313b4 (patch) | |
tree | 4201598fb5b722e45a573a30452fe430145338f7 /index.php | |
parent | b6a54537b8823d2b96e9bdb64e280959d6681c36 (diff) | |
parent | 4a7af9759a1874bdf6ec00a286040a3c64b9870e (diff) | |
download | Shaarli-a6aa37b96fc59d3e6218dbcfd8f6ea8e5ba313b4.tar.gz Shaarli-a6aa37b96fc59d3e6218dbcfd8f6ea8e5ba313b4.tar.zst Shaarli-a6aa37b96fc59d3e6218dbcfd8f6ea8e5ba313b4.zip |
Merge pull request #398 from virtualtam/fix/initialize-version-vars
fix: assign template variables to empty values so they can be evaluated
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 | ||