[Pkg-owncloud-commits] [owncloud] 163/223: Prevent warning

David Prévot taffit at moszumanska.debian.org
Sun Jun 22 01:54:20 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 3ed4e5b26b4b1b253506525aedd9b8d0b8bd649b
Author: Robin Appelman <icewind at owncloud.com>
Date:   Mon Jun 16 16:12:32 2014 +0200

    Prevent warning
---
 apps/files_sharing/lib/external/scanner.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/files_sharing/lib/external/scanner.php b/apps/files_sharing/lib/external/scanner.php
index 7381450..8921dd1 100644
--- a/apps/files_sharing/lib/external/scanner.php
+++ b/apps/files_sharing/lib/external/scanner.php
@@ -45,7 +45,7 @@ class Scanner extends \OC\Files\Cache\Scanner {
 
 	private function addResult($data, $path) {
 		$this->cache->put($path, $data);
-		if ($data['children']) {
+		if (isset($data['children'])) {
 			foreach ($data['children'] as $child) {
 				$this->addResult($child, ltrim($path . '/' . $child['name'], '/'));
 			}

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