From 93b2ada6f6b54dc9b3c341c379e524f51a75b8f4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= <schiessle@owncloud.com>
Date: Thu, 14 Mar 2013 17:08:16 +0100
Subject: [PATCH] fix var name

---
 apps/files_versions/lib/versions.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/files_versions/lib/versions.php b/apps/files_versions/lib/versions.php
index 8874fec6bd..6d47b3038c 100644
--- a/apps/files_versions/lib/versions.php
+++ b/apps/files_versions/lib/versions.php
@@ -164,7 +164,7 @@ class Storage {
 		
 		// if the file already exists than it was a upload of a existing file
 		// over the web interface -> store() is the right function we need here
-		if ($files_view->file_exists($newpath)) {
+		if ($files_view->file_exists($new_path)) {
 			return self::store($newpath);
 		}
 		
-- 
GitLab