]> source.dussan.org Git - nextcloud-server.git/commitdiff
initialize
authorBjörn Schießle <schiessle@owncloud.com>
Wed, 16 Jan 2013 09:18:40 +0000 (10:18 +0100)
committerBjörn Schießle <schiessle@owncloud.com>
Wed, 16 Jan 2013 09:18:40 +0000 (10:18 +0100)
apps/files_versions/lib/versions.php

index 2378f037b515469a527e404f19dc2dd886e98739..48be5e223ac0eef2b3c6b0973b97274a4bd31245 100644 (file)
@@ -151,7 +151,8 @@ class Storage {
                if(\OCP\Config::getSystemValue('files_versions', Storage::DEFAULTENABLED)=='true') {
                        list($uid, $filename) = self::getUidAndFilename($filename);
                        $users_view = new \OC_FilesystemView('/'.$uid);
-
+                       $versionCreated = false;
+                       
                        //first create a new version
                        $version = 'files_versions'.$filename.'.v'.$users_view->filemtime('files'.$filename);
                        if ( !$users_view->file_exists($version)) {