Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2013-09-03 00:13:11 +0400
committerArthur Schiwon <blizzz@owncloud.com>2013-09-03 00:13:11 +0400
commit4e54e8b36d9d109890a9761f5c5260bba81107f0 (patch)
tree1f1913a228695b2bb3418d3c998282e678f87578 /lib/archive.php
parentcd6443a19fd68e0376f4f1b82ac215328eca0c41 (diff)
fix unknown var in if clause
Diffstat (limited to 'lib/archive.php')
-rw-r--r--lib/archive.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/archive.php b/lib/archive.php
index dbdd7d077e8..66ea95f57bc 100644
--- a/lib/archive.php
+++ b/lib/archive.php
@@ -119,7 +119,8 @@ abstract class OC_Archive{
* @return bool
*/
function addRecursive($path, $source) {
- if($dh=opendir($source) && is_resource($dh)) {
+ $dh=opendir($source);
+ if(is_resource($dh)) {
$this->addFolder($path);
while (($file = readdir($dh)) !== false) {
if($file=='.' or $file=='..') {