[Pkg-owncloud-commits] [owncloud] 328/394: use variable instead of a second array lookup

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:12:42 UTC 2013


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

taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.

commit a146360479ca03fc3ab33a652d7812eb4adaa84b
Author: Björn Schießle <schiessle at owncloud.com>
Date:   Tue Feb 5 19:10:53 2013 +0100

    use variable instead of a second array lookup
---
 lib/public/share.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/public/share.php b/lib/public/share.php
index 9983415..12f92b7 100644
--- a/lib/public/share.php
+++ b/lib/public/share.php
@@ -847,7 +847,7 @@ class Share {
 					}
 					// Remove collection item
 					$toRemove = $row['id'];
-					if (array_key_exists($row['id'], $switchedItems)) {
+					if (array_key_exists($toRemove, $switchedItems)) {
 						$toRemove = $switchedItems[$toRemove];
 					}
 					unset($items[$toRemove]);

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