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

View file

@ -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));
} }