From 4687f50e754f54349ea33348a45cacddaa10261a Mon Sep 17 00:00:00 2001
From: Michael Gapczynski <mtgap@owncloud.com>
Date: Fri, 17 May 2013 11:15:53 -0400
Subject: [PATCH] Add undefined verision variables

---
 core/ajax/update.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/core/ajax/update.php b/core/ajax/update.php
index af469237a1..db00da0223 100644
--- a/core/ajax/update.php
+++ b/core/ajax/update.php
@@ -6,6 +6,8 @@ require_once '../../lib/base.php';
 if (OC::checkUpgrade(false)) {
 	\OC_DB::enableCaching(false);
 	OC_Config::setValue('maintenance', true);
+	$installedVersion = OC_Config::getValue('version', '0.0.0');
+	$currentVersion = implode('.', OC_Util::getVersion());
 	OC_Log::write('core', 'starting upgrade from ' . $installedVersion . ' to ' . $currentVersion, OC_Log::WARN);
 	$updateEventSource = new OC_EventSource();
 	$watcher = new UpdateWatcher($updateEventSource);
@@ -111,4 +113,4 @@ class UpdateWatcher {
 		$this->eventSource->close();
 	}
 
-}
+}
\ No newline at end of file
-- 
GitLab