[Pkg-owncloud-commits] [owncloud] 23/59: Update share.php

David Prévot taffit at moszumanska.debian.org
Fri Jul 18 16:19:26 UTC 2014


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

taffit pushed a commit to branch master
in repository owncloud.

commit 3113e99c904150ce55fa82f9b7d479664ee9daa1
Author: libasys <sebastian.doell at libasys.de>
Date:   Thu Jul 10 13:02:04 2014 +0200

    Update share.php
    
    Added empty for error:
    ```
    Undefined index: file_target at /var/www/owncloud/lib/private/share/share.php#1911
    ```
---
 lib/private/share/share.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/private/share/share.php b/lib/private/share/share.php
index 691a205..673c0dc 100644
--- a/lib/private/share/share.php
+++ b/lib/private/share/share.php
@@ -1905,7 +1905,7 @@ class Share extends \OC\Share\Constants {
 				} else if (!isset($statuses[$item[$column]])) {
 					$statuses[$item[$column]]['link'] = false;
 				}
-				if ($item['file_target']) {
+				if (!empty($item['file_target'])) {
 					$statuses[$item[$column]]['path'] = $item['path'];
 				}
 			}

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