commit b10d91674bed5f43aa6ec9409a63fbee510d3005
parent cfe1752dc89dcbd0ae4f0ab251ddbb562e792165
Author: MTRNord <mtrnord1@gmail.com>
Date: Sun, 21 Dec 2014 14:57:11 +0100
try to fix missing variable
Diffstat:
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/core/update/update/update.php b/core/update/update/update.php
@@ -165,6 +165,7 @@ class AutoUpdate {
* @return string The latest version
*/
public function checkUpdate() {
+ global $branch;
$this->log('Checking for a new update. . .');
$updateFile = $this->updateUrl.'/update.ini';
@@ -180,11 +181,8 @@ class AutoUpdate {
$keyOld = 0;
$latest = 0;
$update = '';
- var_dump($versions);
foreach ($versions as $key => $version) {
- var_dump($key);
- var_dump($version);
- if ($branch == $versions['branch']){
+ if ($branch == $version['branch']){
if ($key > $keyOld) {
$keyOld = $key;
$latest = $version['version'];