[Pkg-owncloud-commits] [owncloud] 49/118: Get the id before using it

David Prévot taffit at moszumanska.debian.org
Fri Mar 27 22:13:11 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit aa63a16f2518a8dac07da958d0d28e550c59ae48
Author: Joas Schilling <nickvergessen at owncloud.com>
Date:   Mon Mar 9 19:27:02 2015 +0100

    Get the id before using it
---
 lib/private/files/cache/cache.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/private/files/cache/cache.php b/lib/private/files/cache/cache.php
index 1e9df6e..77cffa3 100644
--- a/lib/private/files/cache/cache.php
+++ b/lib/private/files/cache/cache.php
@@ -256,8 +256,9 @@ class Cache {
 			}
 
 			// The file was created in the mean time
+			$id = $this->getId($file);
 			$this->update($id, $data);
-			return $this->getId($file);
+			return $id;
 		}
 	}
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list