pgsql7.3 fix + wrong id for the addressbook custom-fields, should work now

This commit is contained in:
Ralf Becker 2003-10-20 08:49:21 +00:00
parent 77f406f6ef
commit 9f450cb1a8

View File

@ -484,7 +484,7 @@
reset($stock_fieldnames); reset($stock_fieldnames);
} }
$this->db->query("SELECT contact_name,contact_value FROM $this->ext_table WHERE contact_id='" $this->db->query("SELECT contact_name,contact_value FROM $this->ext_table WHERE contact_id='"
. $ldap_fields[$i]['id'] . "'",__LINE__,__FILE__); . intval($ldap_fields[$i]['uidnumber']) . "'",__LINE__,__FILE__);
while ($this->db->next_record()) while ($this->db->next_record())
{ {
if ($extra_fields[$this->db->f('contact_name')]) if ($extra_fields[$this->db->f('contact_name')])