diff options
-rw-r--r-- | application/ApplicationUtils.php | 2 | ||||
-rw-r--r-- | index.php | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/application/ApplicationUtils.php b/application/ApplicationUtils.php index 6d878110..274331e1 100644 --- a/application/ApplicationUtils.php +++ b/application/ApplicationUtils.php | |||
@@ -50,6 +50,8 @@ class ApplicationUtils | |||
50 | * @param bool $enableCheck whether to check for new versions | 50 | * @param bool $enableCheck whether to check for new versions |
51 | * @param bool $isLoggedIn whether the user is logged in | 51 | * @param bool $isLoggedIn whether the user is logged in |
52 | * | 52 | * |
53 | * @throws Exception an invalid branch has been set for update checks | ||
54 | * | ||
53 | * @return mixed the new version code if available and greater, else 'false' | 55 | * @return mixed the new version code if available and greater, else 'false' |
54 | */ | 56 | */ |
55 | public static function checkUpdate($currentVersion, | 57 | public static function checkUpdate($currentVersion, |
@@ -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 | ||