phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] phpgwapi/inc class.acl.inc.php


From: Caeies
Subject: [Phpgroupware-cvs] phpgwapi/inc class.acl.inc.php
Date: Mon, 02 Oct 2006 10:26:17 +0000

CVSROOT:        /sources/phpgwapi
Module name:    phpgwapi
Changes by:     Caeies <Caeies> 06/10/02 10:26:17

Modified files:
        inc            : class.acl.inc.php 

Log message:
        fix E_ALL

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/inc/class.acl.inc.php?cvsroot=phpgwapi&r1=1.86&r2=1.87

Patches:
Index: class.acl.inc.php
===================================================================
RCS file: /sources/phpgwapi/phpgwapi/inc/class.acl.inc.php,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -b -r1.86 -r1.87
--- class.acl.inc.php   9 Sep 2006 11:41:03 -0000       1.86
+++ class.acl.inc.php   2 Oct 2006 10:26:17 -0000       1.87
@@ -6,7 +6,7 @@
        * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General 
Public License
        * @package phpgwapi
        * @subpackage accounts
-       * @version $Id: class.acl.inc.php,v 1.86 2006/09/09 11:41:03 skwashd 
Exp $
+       * @version $Id: class.acl.inc.php,v 1.87 2006/10/02 10:26:17 Caeies Exp 
$
        */
 
        /**
@@ -877,10 +877,13 @@
                        $myaccounts = createObject('phpgwapi.accounts');
                        $my_memberships = 
$myaccounts->membership($this->account_id);
                        unset($myaccounts);
+                       if(is_array($my_memberships))
+                       {
                        foreach ( $my_memberships as $key => $group )
                        {
                                $acct_ids[] = $group['account_id'];
                        }
+                       }
                        
                        $sql = "SELECT acl_account,acl_grantor, acl_rights FROM 
phpgw_acl WHERE acl_appname = '$app' $at_location AND acl_grantor IS NOT NULL 
AND acl_type = $type AND "
                                . 'acl_account IN (' . implode(',', $acct_ids) 
. ')';




reply via email to

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