fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [17647]


From: nelson . guerra
Subject: [Fmsystem-commits] [17647]
Date: Fri, 19 Jan 2018 22:45:30 -0500 (EST)

Revision: 17647
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=17647
Author:   nelson224
Date:     2018-01-19 22:45:29 -0500 (Fri, 19 Jan 2018)
Log Message:
-----------


Modified Paths:
--------------
    branches/dev-syncromind/calendar/inc/class.socalendar_sql.inc.php

Modified: branches/dev-syncromind/calendar/inc/class.socalendar_sql.inc.php
===================================================================
--- branches/dev-syncromind/calendar/inc/class.socalendar_sql.inc.php   
2018-01-20 03:45:12 UTC (rev 17646)
+++ branches/dev-syncromind/calendar/inc/class.socalendar_sql.inc.php   
2018-01-20 03:45:29 UTC (rev 17647)
@@ -704,9 +704,12 @@
                
                $this->stream->query('DELETE FROM phpgw_cal_user WHERE 
cal_id='.$event['id'],__LINE__,__FILE__);
 
-               @reset($event['participants']);
-               while (list($key,$value) = @each($event['participants']))
-               {
+               //@reset($event['participants']);
+               //while (list($key,$value) = @each($event['participants']))
+                if (is_array($event['participants']))
+                {
+                    foreach($event['participants'] as $key => $value)
+                    {
                        if(intval($key) == $event['owner'])
                        {
                                $value = 'A';
@@ -713,7 +716,8 @@
                        }
                        $this->stream->query('INSERT INTO 
phpgw_cal_user(cal_id,cal_login,cal_status,cal_type) '
                                . 
'VALUES('.$event['id'].','.intval($key).",'".$value."','".$type."')",__LINE__,__FILE__);
-               }
+                    }
+                }
 
                if($event['recur_type'] != MCAL_RECUR_NONE)
                {




reply via email to

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