aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-02-05 19:10:53 +0100
committerBjörn Schießle <schiessle@owncloud.com>2013-02-05 19:10:53 +0100
commita146360479ca03fc3ab33a652d7812eb4adaa84b (patch)
treecca203814986d8e5180dc9ef9d7b6e366f7e92c9
parent83105438cad3f7ed3a511386af4a9858d5aad213 (diff)
downloadnextcloud-server-a146360479ca03fc3ab33a652d7812eb4adaa84b.tar.gz
nextcloud-server-a146360479ca03fc3ab33a652d7812eb4adaa84b.zip
use variable instead of a second array lookup
-rw-r--r--lib/public/share.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/share.php b/lib/public/share.php
index 99834158e9f..12f92b71b64 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]);