[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] syncml/inc class.syncml_database.inc.php
From: |
Johan Gunnarsson |
Subject: |
[Phpgroupware-cvs] syncml/inc class.syncml_database.inc.php |
Date: |
Sun, 19 Aug 2007 18:35:38 +0000 |
CVSROOT: /sources/phpgroupware
Module name: syncml
Changes by: Johan Gunnarsson <johang> 07/08/19 18:35:38
Modified files:
inc : class.syncml_database.inc.php
Log message:
Undeclared function and NOTICE fix
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/syncml/inc/class.syncml_database.inc.php?cvsroot=phpgroupware&r1=1.3&r2=1.4
Patches:
Index: class.syncml_database.inc.php
===================================================================
RCS file: /sources/phpgroupware/syncml/inc/class.syncml_database.inc.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- class.syncml_database.inc.php 17 Aug 2007 09:45:37 -0000 1.3
+++ class.syncml_database.inc.php 19 Aug 2007 18:35:38 -0000 1.4
@@ -7,7 +7,7 @@
* @copyright Copyright (c) 2007 Free Software Foundation, Inc.
* @license GNU General Public License 3 or later
* @package syncml
- * @version $Id: class.syncml_database.inc.php,v 1.3 2007/08/17
09:45:37 johang Exp $
+ * @version $Id: class.syncml_database.inc.php,v 1.4 2007/08/19
18:35:38 johang Exp $
*/
require_once 'inc/class.somappings.inc.php';
@@ -200,6 +200,8 @@
$mappings = $this->somappings->get_mapping(
$this->channel_id, $luid, NULL, NULL);
+ $dirty = FALSE;
+
if(count($mappings) > 0)
{
list(list(,, $guid, $dirty)) = $mappings;
@@ -211,7 +213,7 @@
// we want to add the old item to our client, by
// removing its mapping.
- $this->somappings->remove_mapping(
+ $this->somappings->delete_mapping(
$this->channel_id, $luid, $guid, NULL);
// we don't want this item back, so we insert a
mapping.