removing undefined $response
This commit is contained in:
parent
7ca740fa3d
commit
4a345fd911
|
@ -234,12 +234,11 @@ class OC_FileStorage_DAV extends OC_Filestorage_Common{
|
||||||
$path1=$this->cleanPath($path1);
|
$path1=$this->cleanPath($path1);
|
||||||
$path2=$this->root.$this->cleanPath($path2);
|
$path2=$this->root.$this->cleanPath($path2);
|
||||||
try {
|
try {
|
||||||
$response=$this->client->request('MOVE', $path1, null, array('Destination'=>$path2));
|
$this->client->request('MOVE', $path1, null, array('Destination'=>$path2));
|
||||||
return true;
|
return true;
|
||||||
} catch(Exception $e) {
|
} catch(Exception $e) {
|
||||||
echo $e;
|
echo $e;
|
||||||
echo 'fail';
|
echo 'fail';
|
||||||
var_dump($response);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -248,12 +247,11 @@ class OC_FileStorage_DAV extends OC_Filestorage_Common{
|
||||||
$path1=$this->cleanPath($path1);
|
$path1=$this->cleanPath($path1);
|
||||||
$path2=$this->root.$this->cleanPath($path2);
|
$path2=$this->root.$this->cleanPath($path2);
|
||||||
try {
|
try {
|
||||||
$response=$this->client->request('COPY', $path1, null, array('Destination'=>$path2));
|
$this->client->request('COPY', $path1, null, array('Destination'=>$path2));
|
||||||
return true;
|
return true;
|
||||||
} catch(Exception $e) {
|
} catch(Exception $e) {
|
||||||
echo $e;
|
echo $e;
|
||||||
echo 'fail';
|
echo 'fail';
|
||||||
var_dump($response);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue