From d9bcf68e395d6156645a7974b1a992aa6e6c00aa Mon Sep 17 00:00:00 2001
From: Marius Cramer <m.cramer@pixcept.de>
Date: Mon, 14 Oct 2013 08:57:25 -0400
Subject: [PATCH] Added missing empty directories from svn import

---
 interface/web/sites/aps_do_operation.php |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/interface/web/sites/aps_do_operation.php b/interface/web/sites/aps_do_operation.php
index 033bece..ad165f3 100644
--- a/interface/web/sites/aps_do_operation.php
+++ b/interface/web/sites/aps_do_operation.php
@@ -27,7 +27,7 @@
 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
- 
+
 require_once('../../lib/config.inc.php');
 require_once('../../lib/app.inc.php');
 $app->load('aps_guicontroller');
@@ -72,6 +72,7 @@
         $cid = $app->db->queryOneRecord("SELECT client_id FROM client WHERE username = '".$app->db->quote($_SESSION['s']['user']['username'])."';");
         $client_id = $cid['client_id'];
     }
+	
     // Assume that the given instance belongs to the currently calling client_id. Unimportant if status is admin
     if(!$gui->isValidInstanceID($_GET['id'], $client_id, $is_admin)) die($app->lng('Invalid ID'));
     
@@ -79,9 +80,9 @@
     $check = $app->db->queryOneRecord("SELECT id FROM aps_instances 
         WHERE id = ".$app->db->quote($_GET['id'])." AND 
         (instance_status = ".INSTANCE_SUCCESS." OR instance_status = ".INSTANCE_ERROR.");");
-    if(!empty($check)) $gui->deleteInstance($_GET['id']);
-    
-    echo $app->lng('Installation_remove');
+    if($check['id'] > 0) $gui->deleteInstance($_GET['id']);
+    //echo $app->lng('Installation_remove');
+	@header('Location:aps_installedpackages_list.php');
 }
 else if($_GET['action'] == 'reinstall_instance')
 {
@@ -105,6 +106,7 @@
     if(!$check) die('Check failed'); // normally this might not happen at all, so just die
     
     $gui->reinstallInstance($_GET['id']);
-    echo $app->lng('Installation_task');
+    //echo $app->lng('Installation_task');
+	@header('Location:aps_installedpackages_list.php');
 }
 ?>

--
Gitblit v1.9.1