R33832 - /trunk/calendar/inc/class.calendar_merge.inc.php

Author: nathangray
New Revision: 33832

URL: http://www.egroupware.org/viewvc/egroupware?rev=33832&view=rev
Log:
Prevent duplicate events in some tables

Modified:
trunk/calendar/inc/class.calendar_merge.inc.php

Modified: trunk/calendar/inc/class.calendar_merge.inc.php
URL: http://www.egroupware.org/viewvc/egroupware/trunk/calendar/inc/class.calendar_merge.inc.php?rev=33832&r1=33831&r2=33832&view=diff

— trunk/calendar/inc/class.calendar_merge.inc.php (original)
+++ trunk/calendar/inc/class.calendar_merge.inc.php Thu Feb 17 18:37:24 2011
@@ -210,6 +210,7 @@
‘order’ => ‘cal_start’,
‘daywise’ => true
));

  •   $days = array();
      $replacements = array();
      foreach($events as $day => $list) 
      {
    

@@ -269,6 +270,7 @@
));

	$replacements = array();
  •   $days = array();
      foreach($events as $day => $list) 
      {
      	foreach($list as $key => $event)
    

@@ -276,7 +278,6 @@
$days[date(‘Ymd’,$_date)][$plugin][] = $this->calendar_replacements($event);
}
}
-//_debug_array($days);
return $days[date(‘Ymd’,$_date)][$plugin][0];
}


The ultimate all-in-one performance toolkit: Intel® Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb


eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs