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:
parent
b6a54537b8
commit
4a7af9759a
2 changed files with 4 additions and 0 deletions
|
@ -50,6 +50,8 @@ public static function getLatestGitVersionCode($url, $timeout=2)
|
||||||
* @param bool $enableCheck whether to check for new versions
|
* @param bool $enableCheck whether to check for new versions
|
||||||
* @param bool $isLoggedIn whether the user is logged in
|
* @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'
|
* @return mixed the new version code if available and greater, else 'false'
|
||||||
*/
|
*/
|
||||||
public static function checkUpdate($currentVersion,
|
public static function checkUpdate($currentVersion,
|
||||||
|
|
|
@ -643,9 +643,11 @@ private function initialize()
|
||||||
$GLOBALS['config']['UPDATECHECK_BRANCH']
|
$GLOBALS['config']['UPDATECHECK_BRANCH']
|
||||||
);
|
);
|
||||||
$this->tpl->assign('newVersion', escape($version));
|
$this->tpl->assign('newVersion', escape($version));
|
||||||
|
$this->tpl->assign('versionError', '');
|
||||||
|
|
||||||
} catch (Exception $exc) {
|
} catch (Exception $exc) {
|
||||||
logm($exc->getMessage());
|
logm($exc->getMessage());
|
||||||
|
$this->tpl->assign('newVersion', '');
|
||||||
$this->tpl->assign('versionError', escape($exc->getMessage()));
|
$this->tpl->assign('versionError', escape($exc->getMessage()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue