#1708 fixed return struct of the restoreBackupCheck method

This commit is contained in:
tomash 2006-11-09 01:38:04 +00:00
parent 56d8e855e6
commit fc866bbfb7
3 changed files with 26 additions and 18 deletions

View file

@ -111,6 +111,7 @@ class Restore {
$this->token = $token;
$this->setEnviroment();
if (is_file($this->statusFile)) {
$r = array();
$stat = file_get_contents($this->statusFile);
if (strpos($stat,'fault|') !== false) {
list($stat,$message) = explode('|',$stat);
@ -119,7 +120,7 @@ class Restore {
if ($stat=='fault') {
$r['faultString'] = $message;
}
$r['token'] = $token;
// $r['token'] = $token;
return $r;
} else {
return PEAR::raiseError('Restore::checkRestore: invalid token!');