summaryrefslogtreecommitdiffstats
path: root/lib/archive.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-08-19 12:04:53 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-08-21 22:37:22 +0200
commitf42b69d72fd456c32380b46af38eab9ef339e141 (patch)
tree7d576ae6d763a6beb85970405cb18e9e05f05a0b /lib/archive.php
parent8e67854fc9a7a6bb10a4fa38c8a00a5aa3f6879c (diff)
downloadnextcloud-server-f42b69d72fd456c32380b46af38eab9ef339e141.tar.gz
nextcloud-server-f42b69d72fd456c32380b46af38eab9ef339e141.zip
use strict equals in readdir loops to prevent issues with '0' files
Conflicts: apps/files_external/lib/amazons3.php apps/files_trashbin/index.php lib/connector/sabre/objecttree.php
Diffstat (limited to 'lib/archive.php')
-rw-r--r--lib/archive.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/archive.php b/lib/archive.php
index 61239c82076..e0438041dab 100644
--- a/lib/archive.php
+++ b/lib/archive.php
@@ -121,7 +121,7 @@ abstract class OC_Archive{
function addRecursive($path, $source) {
if($dh=opendir($source)) {
$this->addFolder($path);
- while($file=readdir($dh)) {
+ while (($file = readdir($dh)) !== false) {
if($file=='.' or $file=='..') {
continue;
}