From: Björn Schießle Date: Thu, 14 Mar 2013 16:09:48 +0000 (+0100) Subject: fix var name X-Git-Tag: v6.0.0alpha2~1064^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f78594c0aeeb29bfc4365f48dbb967b645fd5c61;p=nextcloud-server.git fix var name --- diff --git a/apps/files_versions/lib/versions.php b/apps/files_versions/lib/versions.php index 6d47b3038c6..f99e26a0915 100644 --- a/apps/files_versions/lib/versions.php +++ b/apps/files_versions/lib/versions.php @@ -164,8 +164,8 @@ 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($new_path)) { - return self::store($newpath); + if ($files_view->file_exists($newpath)) { + return self::store($new_path); } $abs_newpath = $versions_view->getLocalFile($newpath);