Changed the closeRestore() function to return what it said it was supposed to return.
This commit is contained in:
parent
c18205267e
commit
b6d548aff8
1 changed files with 3 additions and 3 deletions
|
@ -151,7 +151,7 @@ class Restore {
|
||||||
* @param string $token
|
* @param string $token
|
||||||
* @return array
|
* @return array
|
||||||
* hasharray with field:
|
* hasharray with field:
|
||||||
* status : boolean - is susccess
|
* status : boolean - is success
|
||||||
*/
|
*/
|
||||||
function closeRestore($token)
|
function closeRestore($token)
|
||||||
{
|
{
|
||||||
|
@ -162,7 +162,7 @@ class Restore {
|
||||||
$this->setEnviroment();
|
$this->setEnviroment();
|
||||||
$this->rRmDir($this->tmpDir);
|
$this->rRmDir($this->tmpDir);
|
||||||
unlink($this->statusFile);
|
unlink($this->statusFile);
|
||||||
return !is_file($this->statusFile);
|
return array("status" => !is_file($this->statusFile));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue