[Pkg-owncloud-commits] [owncloud] 383/394: bug fix from #2247

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:12:55 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 5181232aacab68f0624b45910f3238131a5bb43f
Author: Björn Schießle <schiessle at owncloud.com>
Date:   Wed Mar 13 10:50:23 2013 +0100

    bug fix from #2247
---
 lib/files.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/files.php b/lib/files.php
index 568aaa3..8e2ba5a 100644
--- a/lib/files.php
+++ b/lib/files.php
@@ -140,7 +140,7 @@ class OC_Files {
 	* @param boolean $only_header ; boolean to only send header of the request
 	*/
 	public static function get($dir,$files, $only_header = false) {
-		if (count($files) == 1) {
+		if (is_array($files) && count($files) == 1) {
 			$files = $files[0];
 		}
 		

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