summaryrefslogtreecommitdiffstats
path: root/lib/private/helper.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-10-14 21:33:23 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-10-14 21:33:23 +0200
commit6df5c7ebd533f0c499197c83e04c4edc786db192 (patch)
treefa189c20fbeedd69aeb1032644d3b600a0b1e72c /lib/private/helper.php
parentc97b52090e2b917b29d19d5973bfe2784feaf9b4 (diff)
downloadnextcloud-server-6df5c7ebd533f0c499197c83e04c4edc786db192.tar.gz
nextcloud-server-6df5c7ebd533f0c499197c83e04c4edc786db192.zip
streamCopy() should return proper structure.
Callers of streamCopy() expect an array to be returned containing count and result.
Diffstat (limited to 'lib/private/helper.php')
-rw-r--r--lib/private/helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/helper.php b/lib/private/helper.php
index a34640d8e36..1236e748256 100644
--- a/lib/private/helper.php
+++ b/lib/private/helper.php
@@ -509,11 +509,11 @@ class OC_Helper {
*
* @param resource $source
* @param resource $target
- * @return int the number of bytes copied
+ * @return array the number of bytes copied and result
*/
public static function streamCopy($source, $target) {
if (!$source or !$target) {
- return false;
+ return array(0, false);
}
$result = true;
$count = 0;