phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] sync/inc/class.so_sync.inc.php, 1.50


From: nomail
Subject: [Phpgroupware-cvs] sync/inc/class.so_sync.inc.php, 1.50
Date: Tue, 13 Jul 2004 17:53:40 +0200

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

date: 2004/07/13 15:53:40;  author: mkaemmerer;  state: Exp;  lines: +5 -9

Log Message:
- fixed DeleteDevice
=====================================================================
Index: sync/inc/class.so_sync.inc.php
diff -u sync/inc/class.so_sync.inc.php:1.49 sync/inc/class.so_sync.inc.php:1.50
--- sync/inc/class.so_sync.inc.php:1.49 Mon Jul 12 19:35:27 2004
+++ sync/inc/class.so_sync.inc.php      Tue Jul 13 15:53:40 2004
@@ -214,7 +214,7 @@
     }
     
     /**
-     * Delete a Device with all connected ressources from the database
+     * Delete a device with all connected ressources from the database
      *
      * @param string $deviceid unique internal identifier of the device
      * @return integer deviceid of the deleted device
@@ -225,15 +225,11 @@
       $id = $GLOBALS['phpgw']->db->query("DELETE FROM phpgw_syncdevices WHERE 
deviceid='".$deviceid."'",__LINE__,__FILE__);
       if (isset($id)) 
       {  
-        $id = $GLOBALS['phpgw']->db->query("DELETE FROM phpgw_syncdevices 
WHERE deviceid='".$deviceid."'",__LINE__,__FILE__);
+        $id = $GLOBALS['phpgw']->db->query("DELETE FROM phpgw_syncchannels 
WHERE deviceid='".$deviceid."'",__LINE__,__FILE__);
         if (isset($id)) 
         {  
-          $id = $GLOBALS['phpgw']->db->query("DELETE FROM phpgw_syncchannels 
WHERE deviceid='".$deviceid."'",__LINE__,__FILE__);
-          if (isset($id)) 
-          {
-            return $deviceid;
-          }
-        } 
+          return $deviceid;
+        }
       }
       return -1;
     }




reply via email to

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