Changed the closeRestore() function to return what it said it was supposed to return.

This commit is contained in:
paul 2007-02-13 17:03:00 +00:00
parent c18205267e
commit b6d548aff8
1 changed files with 3 additions and 3 deletions

View File

@ -87,7 +87,7 @@ class Restore {
}
$this->sessid = $sessid;
//generate token
// generate token
$this->token = StoredFile::CreateGunid();
// status file -> working
@ -151,7 +151,7 @@ class Restore {
* @param string $token
* @return array
* hasharray with field:
* status : boolean - is susccess
* status : boolean - is success
*/
function closeRestore($token)
{
@ -162,7 +162,7 @@ class Restore {
$this->setEnviroment();
$this->rRmDir($this->tmpDir);
unlink($this->statusFile);
return !is_file($this->statusFile);
return array("status" => !is_file($this->statusFile));
}