summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2015-06-25 12:14:46 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2015-06-25 12:14:46 +0200
commita288d0eea36331703bf1d6e48b4bbe3e0b98e4b2 (patch)
treea4e1b77a22844f45a23a872eaaa20ff034e6e11a /lib
parentdd9dfc4461ba9e484f25c81e232f00ce1873e2f0 (diff)
downloadnextcloud-server-a288d0eea36331703bf1d6e48b4bbe3e0b98e4b2.tar.gz
nextcloud-server-a288d0eea36331703bf1d6e48b4bbe3e0b98e4b2.zip
ne need to check twice if $row['share_with'] is set
Diffstat (limited to 'lib')
-rw-r--r--lib/private/share/share.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php
index 87000ca29a5..e4932288358 100644
--- a/lib/private/share/share.php
+++ b/lib/private/share/share.php
@@ -1705,7 +1705,7 @@ class Share extends Constants {
// Add display names to result
$row['share_with_displayname'] = $row['share_with'];
if ( isset($row['share_with']) && $row['share_with'] != '' &&
- isset($row['share_with']) && $row['share_type'] === self::SHARE_TYPE_USER) {
+ $row['share_type'] === self::SHARE_TYPE_USER) {
$row['share_with_displayname'] = \OCP\User::getDisplayName($row['share_with']);
} else if(isset($row['share_with']) && $row['share_with'] != '' &&
$row['share_type'] === self::SHARE_TYPE_REMOTE) {