{menu secondaire }

Annuaire du LAAS


Error with the following message:

Undefined offset: 0

in /www/html/template/laas-cnrs-2009/support/protected/modules/annuaire/module.php at line 301

Stack trace:

#00 — /template/laas-cnrs-2009/support/framework/wdcore/wdmodule.php(580): call_user_func_array(Array, Array)
#01 — /1-31281-Annuaire-du-LAAS.php(99): WdModule->getBlock(view, 9797)

Code sample:

if ($ldapC) {
$sr = ldap_search($ldapC,"ou=users,dc=laas,dc=fr","mail=".$entry->email);
$info = ldap_get_entries($ldapC, $sr);
ldap_close($ldapC);
$uid=$info[0]["uid"][0];
}

$entry->urlperso="http://homepages.laas.fr/".$uid;

// Ajout second numéro de téléphone
if (($entry->phone2!=null) and ($entry->phone2!=0)) {

Olivier DOUSSIN