[Tickets #5841] Variable conflict with sources example and _turba_export function

bugs at bugs.horde.org bugs at bugs.horde.org
Tue Oct 30 01:35:15 UTC 2007


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=5841
-----------------------------------------------------------------------
 Ticket             | 5841
 Created By         | hfw at beep.fdns.net
 Summary            | Variable conflict with sources example and _turba_export function
 Queue              | Turba
 Version            | HEAD
 Type               | Bug
 State              | Unconfirmed
 Priority           | 2. Medium
 Owners             | 
-----------------------------------------------------------------------


hfw at beep.fdns.net (2007-10-29 18:35) wrote:

Hi,

I found that the sources.php.dist for "My Address Book"(personal_ldap),
have the variable $uid which conflicts with at least one function in
lib/api.php function "_turba_export",
where the same variable is used and mess-up after first line
require_once dirname(__FILE__) . '/base.php';

simple one line perl to rename the $uid in sources.php.dist to a more
unique name $source_uid
perl -pi -e 's/\$uid/\$source_uid/g' ./config/sources.php.dist

Regards,
Beppe



More information about the bugs mailing list