[Pkg-owncloud-commits] [owncloud] 237/457: Fixing undefined index 'foo'

David Prévot taffit at moszumanska.debian.org
Sun Jun 28 20:06:14 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 2104c2ffdd4fb2f63c4150bd2ffd0ac35d5ea859
Author: Thomas Müller <thomas.mueller at tmit.eu>
Date:   Mon Jun 1 14:10:00 2015 +0200

    Fixing undefined index 'foo'
---
 lib/private/lock/memcachelockingprovider.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/private/lock/memcachelockingprovider.php b/lib/private/lock/memcachelockingprovider.php
index 26957f8..3f32ab1 100644
--- a/lib/private/lock/memcachelockingprovider.php
+++ b/lib/private/lock/memcachelockingprovider.php
@@ -111,6 +111,9 @@ class MemcacheLockingProvider implements ILockingProvider {
 				throw new LockedException($path);
 			}
 			unset($this->acquiredLocks['exclusive'][$path]);
+			if (!isset($this->acquiredLocks['shared'][$path])) {
+				$this->acquiredLocks['shared'][$path] = 0;
+			}
 			$this->acquiredLocks['shared'][$path]++;
 		} else if ($targetType === self::LOCK_EXCLUSIVE) {
 			// we can only change a shared lock to an exclusive if there's only a single owner of the shared lock

-- 
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