From b6d548aff89c1418340e413594319e8f79a8d8b3 Mon Sep 17 00:00:00 2001 From: paul Date: Tue, 13 Feb 2007 17:03:00 +0000 Subject: [PATCH] Changed the closeRestore() function to return what it said it was supposed to return. --- campcaster/src/modules/storageServer/var/Restore.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/campcaster/src/modules/storageServer/var/Restore.php b/campcaster/src/modules/storageServer/var/Restore.php index 4859a6c49..a9ca615a5 100644 --- a/campcaster/src/modules/storageServer/var/Restore.php +++ b/campcaster/src/modules/storageServer/var/Restore.php @@ -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)); }