[Tickets #5061] Category index is null and used as an index

bugs@bugs.horde.org bugs at bugs.horde.org
Sat Mar 3 09:04:36 PST 2007


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

Ticket URL: http://bugs.horde.org/ticket/?id=5061
-----------------------------------------------------------------------
 Ticket             | 5061
 Created By         | x3n at molinier.eu
 Summary            | Category index is null and used as an index
 Queue              | Turba
 Version            | HEAD
 Type               | Bug
 State              | Unconfirmed
 Priority           | 1. Low
 Owners             | 
-----------------------------------------------------------------------


x3n at molinier.eu (2007-03-03 09:04) wrote:

It's really a bug, but due to some synchronisation with syncML, I have some
contacts without a category.
I have a modified attributes schemes, but the Cateogry is a simple
copy/paste of the attributes.php.dist
The field "Category" is flaged as not required, so I assume it can be set
to NULL in SQL Databases.
In this cas, and if an birthday is filled, we have an error in
turba/lib/api.php:1205

Actually, the error is very simple : if no category is mentionned for the
contact, then it can't be used as an index for an array.

I've solved the problem, by simply testing if the variable
$ob->getValue('category') is NULL. I think it should be necessary to
perform a real test an the integrity of this value because it can cause
sevrel disagreement into kronolith.

Best regards,
x3n (http://www.molinier.eu)




More information about the bugs mailing list