fix: assign template variables to empty values so they can be evaluated

Regression introduced in #394

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
This commit is contained in:
VirtualTam 2015-12-03 20:30:46 +01:00
parent b6a54537b8
commit 4a7af9759a
2 changed files with 4 additions and 0 deletions

View file

@ -50,6 +50,8 @@ class ApplicationUtils
* @param bool $enableCheck whether to check for new versions
* @param bool $isLoggedIn whether the user is logged in
*
* @throws Exception an invalid branch has been set for update checks
*
* @return mixed the new version code if available and greater, else 'false'
*/
public static function checkUpdate($currentVersion,

View file

@ -643,9 +643,11 @@ class pageBuilder
$GLOBALS['config']['UPDATECHECK_BRANCH']
);
$this->tpl->assign('newVersion', escape($version));
$this->tpl->assign('versionError', '');
} catch (Exception $exc) {
logm($exc->getMessage());
$this->tpl->assign('newVersion', '');
$this->tpl->assign('versionError', escape($exc->getMessage()));
}