phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] sync/inc/class.ui_sync.inc.php, 1.19


From: nomail
Subject: [Phpgroupware-cvs] sync/inc/class.ui_sync.inc.php, 1.19
Date: Wed, 12 May 2004 18:14:53 +0200

Update of /sync/inc
Modified Files:
        Branch: 
          class.ui_sync.inc.php

date: 2004/05/12 16:14:53;  author: mleonhardt;  state: Exp;  lines: +14 -11

Log Message:
- reask user when deleting devices (validation was not used->fixed)
=====================================================================
Index: sync/inc/class.ui_sync.inc.php
diff -u sync/inc/class.ui_sync.inc.php:1.18 sync/inc/class.ui_sync.inc.php:1.19
--- sync/inc/class.ui_sync.inc.php:1.18 Wed May 12 16:05:21 2004
+++ sync/inc/class.ui_sync.inc.php      Wed May 12 16:14:53 2004
@@ -459,18 +459,21 @@
   {
     $del_device_id = get_var('del_device_id');
     $validated = get_var('validated');
-    if ($this->so->DeleteDevice($del_device_id) >= 0)
+    if ($validated == 1) 
     {
-      $status1 = lang('status_ok');
-      $status2 = '';
+      if ($this->so->DeleteDevice($del_device_id) >= 0)
+      {
+        $status1 = lang('status_ok');
+        $status2 = '';
+      }
+      else
+      {
+        $status1 = lang('status_error');
+        $status2 = lang('status_not');
+      }   
+      $this->last_operation_status = sprintf(lang('status_deldevice'), 
+               $status1, $this->bo->getDeviceName($del_device_id), $status2);
     }
-    else
-    {
-      $status1 = lang('status_error');
-      $status2 = lang('status_not');
-    }   
-    $this->last_operation_status = sprintf(lang('status_deldevice'), 
-             $status1, $this->bo->getDeviceName($del_device_id), $status2);
     $this->listdevices();
   }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]