fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [8335] property: more on notification


From: Sigurd Nes
Subject: [Fmsystem-commits] [8335] property: more on notification
Date: Thu, 15 Dec 2011 18:42:12 +0000

Revision: 8335
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=8335
Author:   sigurdne
Date:     2011-12-15 18:42:12 +0000 (Thu, 15 Dec 2011)
Log Message:
-----------
property: more on notification

Modified Paths:
--------------
    trunk/property/inc/class.notify.inc.php

Modified: trunk/property/inc/class.notify.inc.php
===================================================================
--- trunk/property/inc/class.notify.inc.php     2011-12-15 17:52:33 UTC (rev 
8334)
+++ trunk/property/inc/class.notify.inc.php     2011-12-15 18:42:12 UTC (rev 
8335)
@@ -270,6 +270,7 @@
                                return;
                        }
 
+                       $update = false;
                        if($notify = phpgw::get_var('notify'))
                        {
                                $ids = $notify['ids'];
@@ -305,10 +306,10 @@
                                        }
                                        
$this->_db->query($sql,__LINE__,__FILE__);                      
                                }
+                               $update = true;
                        }
 
-
-                       if($location_id && $location_item_id && $contact_id)
+                       if($location_id && $location_item_id && $contact_id && 
!$update)
                        {
                                $sql = "SELECT id FROM phpgw_notification WHERE 
location_id = {$location_id} AND location_item_id = {$location_item_id} AND 
contact_id = {$contact_id}";
                                $this->_db->query($sql,__LINE__,__FILE__);




reply via email to

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