phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] calendar/inc/class.bocalendar.inc.php, 1.71.2.33.2.23


From: nomail
Subject: [Phpgroupware-cvs] calendar/inc/class.bocalendar.inc.php, 1.71.2.33.2.23
Date: Tue, 11 May 2004 06:49:01 +0200

Update of /calendar/inc
Modified Files:
        Branch: Version-0_9_16-branch
          class.bocalendar.inc.php

date: 2004/05/11 04:49:01;  author: skwashd;  state: Exp;  lines: +8 -5

Log Message:
patch #8748
=====================================================================
Index: calendar/inc/class.bocalendar.inc.php
diff -u calendar/inc/class.bocalendar.inc.php:1.71.2.33.2.22 
calendar/inc/class.bocalendar.inc.php:1.71.2.33.2.23
--- calendar/inc/class.bocalendar.inc.php:1.71.2.33.2.22        Tue Apr  6 
09:51:49 2004
+++ calendar/inc/class.bocalendar.inc.php       Tue May 11 04:49:01 2004
@@ -1317,7 +1317,7 @@
                        $user = $GLOBALS['phpgw_info']['user']['account_id'];
                        $grants = $this->grants[$owner];
                        
-                       if (is_array($event) && $needed == PHPGW_ACL_READ)
+                       if (is_array($event) && 
is_array($event['participants']) && ($needed == PHPGW_ACL_READ))
                        {
                                // Check if the $user is one of the 
participants or has a read-grant from one of them
                                //
@@ -2795,11 +2795,14 @@
                        }
 
                        $participants = array();
-                       foreach($event['participants'] as $user => 
$short_status)
+                       if(is_array($event['participants']) )
                        {
-                               if($GLOBALS['phpgw']->accounts->exists($user))
+                               foreach($event['participants'] as $user => 
$short_status)
                                {
-                                       $participants[$user] = 
$GLOBALS['phpgw']->common->grab_owner_name($user).' 
('.$this->get_long_status($short_status).')';
+                                       
if($GLOBALS['phpgw']->accounts->exists($user))
+                                       {
+                                               $participants[$user] = 
$GLOBALS['phpgw']->common->grab_owner_name($user).' 
('.$this->get_long_status($short_status).')';
+                                       }
                                }
                        }
                        $var['participants'] = Array(




reply via email to

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