Fix: strict mode plaza

This commit is contained in:
Regis Houssin 2012-08-09 07:38:06 +02:00
parent 2927a58606
commit 00e0649cde

View File

@ -567,9 +567,9 @@ class EcmDirectory // extends CommonObject
$this->cats[$obj->rowid]['fk_user_c'] = $obj->fk_user_c;
$this->cats[$obj->rowid]['login_c'] = $obj->login_c;
if ($obj->rowid_fille)
if (! empty($obj->rowid_fille))
{
if (is_array($this->cats[$obj->rowid]['id_children']))
if (isset($this->cats[$obj->rowid]['id_children']) && is_array($this->cats[$obj->rowid]['id_children']))
{
$newelempos=count($this->cats[$obj->rowid]['id_children']);
//print "this->cats[$i]['id_children'] est deja un tableau de $newelem elements<br>";