patchphpGroupWare - Patches: patch #2875, class.accounts_ldap.inc.php,...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #2875: class.accounts_ldap.inc.php, function get_accounts_with_contacts

Submitter:  Caeies <Caeies>
Submitted:  Mon 29 Mar 2004 11:01:56 AM UTC
   
 
Category:  API - phpGWapi Priority:  9 - Immediate
Item Group:  None Status:  Done
Privacy:  Public Assigned to:  skwashd
Open/Closed:  Closed

Tue 30 Mar 2004 04:48:19 AM UTC, comment #2: 

committed to 16

Dave Hall <skwashd>
Group administrator
Mon 29 Mar 2004 11:22:57 AM UTC, comment #1: 

Hi skwashd,

patch looks OK for me.

Cheers, fips

Philipp Kamps <fipsfuchs>
Mon 29 Mar 2004 11:01:56 AM UTC, original submission:  

This patch is a little correction for the function get_account_with_contact() which is called in some cases when the setup is done (creation of the first LDAP Accounts).
This bug is not triggered with some php versions.

The later php versions of ldap_get_entries always return an array which was not the case in early php4 version. This array contains a row call 'count' which contains the num of returned entries.

so we need to kill this row before returning the array, which could be a 0 row array.

I just post the patch :)

Greetz to apply it ASAP, since it broke the setup process.

Caeies.


Caeies <Caeies>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 4 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-03-30 skwashd StatusNone Done
    Open/ClosedOpen Closed
2004-03-29 fipsfuchs Assigned toNone skwashd
2004-03-29 Caeies Attached File- Added patch_class.accounts_ldap.inc.php.diff, #3023

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code