summaryrefslogtreecommitdiffstats
path: root/lib/archive.php
diff options
context:
space:
mode:
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 70615db714e..364cd5a74a1 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;
}