phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: phpgwapi/inc class.categories.inc.php,1.76,1.77


From: Bettina Gille <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgwapi/inc class.categories.inc.php,1.76,1.77
Date: Wed, 13 Mar 2002 11:30:13 -0500

Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv13298

Modified Files:
        class.categories.inc.php 
Log Message:
update cats

Index: class.categories.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.categories.inc.php,v
retrieving revision 1.76
retrieving revision 1.77
diff -C2 -r1.76 -r1.77
*** class.categories.inc.php    13 Mar 2002 04:16:46 -0000      1.76
--- class.categories.inc.php    13 Mar 2002 16:30:10 -0000      1.77
***************
*** 138,154 ****
                        }
  
!                       if (is_array($this->grants))
                        {
!                               $grants = $this->grants;
!                               while(list($user) = each($grants))
!                               {
!                                       $public_user_list[] = $user;
!                               }
!                               reset($public_user_list);
!                               $grant_cats = " (cat_owner='" . 
$this->account_id . "' OR cat_owner='-1' OR cat_access='public' AND cat_owner 
in(" . implode(',',$public_user_list) . ")) ";
                        }
                        else
                        {
!                               $grant_cats = " cat_owner='" . 
$this->account_id . "' or cat_owner='-1' ";
                        }
  
--- 138,161 ----
                        }
  
!                       if ($this->account_id == '-1')
                        {
!                               $grant_cats = " cat_owner='-1' ";
                        }
                        else
                        {
!                               if (is_array($this->grants))
!                               {
!                                       $grants = $this->grants;
!                                       while(list($user) = each($grants))
!                                       {
!                                               $public_user_list[] = $user;
!                                       }
!                                       reset($public_user_list);
!                                       $grant_cats = " (cat_owner='" . 
$this->account_id . "' OR cat_owner='-1' OR cat_access='public' AND cat_owner 
in(" . implode(',',$public_user_list) . ")) ";
!                               }
!                               else
!                               {
!                                       $grant_cats = " cat_owner='" . 
$this->account_id . "' OR cat_owner='-1' ";
!                               }
                        }
  
***************
*** 217,233 ****
                        }
  
!                       if (is_array($this->grants))
                        {
!                               $grants = $this->grants;
!                               while(list($user) = each($grants))
!                               {
!                                       $public_user_list[] = $user;
!                               }
!                               reset($public_user_list);
!                               $grant_cats = " (cat_owner='" . 
$this->account_id . "' OR cat_owner='-1' OR cat_access='public' AND cat_owner 
in(" . implode(',',$public_user_list) . ")) ";
                        }
                        else
                        {
!                               $grant_cats = " cat_owner='" . 
$this->account_id . "' or cat_owner='-1' ";
                        }
  
--- 224,247 ----
                        }
  
!                       if ($this->account_id == '-1')
                        {
!                               $grant_cats = " cat_owner='-1' ";
                        }
                        else
                        {
!                               if (is_array($this->grants))
!                               {
!                                       $grants = $this->grants;
!                                       while(list($user) = each($grants))
!                                       {
!                                               $public_user_list[] = $user;
!                                       }
!                                       reset($public_user_list);
!                                       $grant_cats = " (cat_owner='" . 
$this->account_id . "' OR cat_owner='-1' OR cat_access='public' AND cat_owner 
in(" . implode(',',$public_user_list) . ")) ";
!                               }
!                               else
!                               {
!                                       $grant_cats = " cat_owner='" . 
$this->account_id . "' or cat_owner='-1' ";
!                               }
                        }
  




reply via email to

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