#1708 fixed return struct of the restoreBackupCheck method
This commit is contained in:
parent
56d8e855e6
commit
fc866bbfb7
3 changed files with 26 additions and 18 deletions
|
@ -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!');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue