diff options
author | Tom Needham <needham.thomas@gmail.com> | 2012-03-20 20:19:21 +0000 |
---|---|---|
committer | Tom Needham <needham.thomas@gmail.com> | 2012-03-20 20:19:21 +0000 |
commit | 514c9ad8e7df1d7882adc33c42eb32a209537273 (patch) | |
tree | f39dae7822c3b7ddf678861a41a0ceea93e267f2 /lib/migration/content.php | |
parent | 145d6f35660669397eaee08988ffbad1b65daff0 (diff) | |
download | nextcloud-server-514c9ad8e7df1d7882adc33c42eb32a209537273.tar.gz nextcloud-server-514c9ad8e7df1d7882adc33c42eb32a209537273.zip |
Added unified import method.
Diffstat (limited to 'lib/migration/content.php')
-rw-r--r-- | lib/migration/content.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/migration/content.php b/lib/migration/content.php index fe8a21a45b4..d25b5af293c 100644 --- a/lib/migration/content.php +++ b/lib/migration/content.php @@ -53,7 +53,7 @@ class OC_Migration_Content{ $query = $this->processQuery( $query ); // Optimize the query - $query = $this->MDB2->prepare( $query ); + $query = $this->db->prepare( $query ); // Die if we have an error (error means: bad query, not 0 results!) if( PEAR::isError( $query ) ) { @@ -174,7 +174,9 @@ class OC_Migration_Content{ $dirname = basename($dir); $this->zip->addEmptyDir($internaldir . $dirname); $internaldir.=$dirname.='/'; - + if( !file_exists( $dir ) ){ + return false; + } if ($dirhandle = opendir($dir)) { while (false !== ( $file = readdir($dirhandle))) { |